Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2009-12-15 01:29:10 +0300
committerMartin Poirier <theeth@yahoo.com>2009-12-15 01:29:10 +0300
commit4942013093bbcab8b434e6db3397b7a46bc34105 (patch)
tree82f282b2b2122d48f0858e2cb22887c3ee83174d /source/creator
parent18cc2b76c2878846a540c463bd6de8ac96ab7611 (diff)
Support -noaudio in background mode too (it was initialized even in bg, that should be fixed).
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index b6c08582144..c080062347d 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -514,6 +514,7 @@ int main(int argc, char **argv)
#endif
}
else {
+ /* background mode options */
for(a=1; a<argc; a++) {
if(argv[a][0] == '-') {
switch(argv[a][1]) {
@@ -529,6 +530,11 @@ int main(int argc, char **argv)
printf("argv[%d] = %s\n", i, argv[i]);
}
break;
+ case 'n':
+ case 'N':
+ if (BLI_strcasecmp(argv[a], "-noaudio") == 0)
+ sound_disable();
+ break;
}
}
}