diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-15 01:29:10 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-15 01:29:10 +0300 |
commit | 4942013093bbcab8b434e6db3397b7a46bc34105 (patch) | |
tree | 82f282b2b2122d48f0858e2cb22887c3ee83174d /source | |
parent | 18cc2b76c2878846a540c463bd6de8ac96ab7611 (diff) |
Support -noaudio in background mode too (it was initialized even in bg, that should be fixed).
Diffstat (limited to 'source')
-rw-r--r-- | source/creator/creator.c | 6 |
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; } } } |