dungeon_crawler
diff prototype/src/cfg.cc @ 47:d52711f2b9a1
started writting audio code
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 16 Sep 2012 08:16:50 +0300 |
parents | 6d71dd4760f9 |
children | aa86119e3295 |
line diff
1.1 --- a/prototype/src/cfg.cc Thu Sep 13 06:33:51 2012 +0300 1.2 +++ b/prototype/src/cfg.cc Sun Sep 16 08:16:50 2012 +0300 1.3 @@ -10,6 +10,7 @@ 1.4 width = 800; 1.5 height = 600; 1.6 stereo = false; 1.7 + sound = true; 1.8 level_file = "0.level"; 1.9 tileset_file = "default.tileset"; 1.10 use_deferred = true; 1.11 @@ -26,6 +27,8 @@ 1.12 } 1.13 } else if(strcmp(argv[i], "-stereo") == 0) { 1.14 stereo = true; 1.15 + } else if(strcmp(argv[i], "-nosound") == 0) { 1.16 + sound = false; 1.17 } else if(strcmp(argv[i], "-level") == 0) { 1.18 level_file = argv[++i]; 1.19 } else if(strcmp(argv[i], "-tileset") == 0) { 1.20 @@ -38,6 +41,7 @@ 1.21 printf(" -level <filename> specify which level file to load\n"); 1.22 printf(" -tileset <filename> specify which tileset to use\n"); 1.23 printf(" -stereo enable stereoscopic rendering\n"); 1.24 + printf(" -nosound disable sound output\n"); 1.25 printf(" -no-deferred disable deferred renderer\n"); 1.26 printf(" -h/-help print usage information and exit\n"); 1.27 exit(0);