[Add] -G option to force regeneration of nebulae.
This commit is contained in:
parent
897fb9918d
commit
02e136520e
@ -12,6 +12,7 @@
|
||||
#include "opengl.h"
|
||||
#include "input.h"
|
||||
#include "music.h"
|
||||
#include "nebulae.h"
|
||||
#include "conf.h"
|
||||
|
||||
#define conf_loadInt(n,i) \
|
||||
@ -70,6 +71,7 @@ static void print_usage(char** argv) {
|
||||
LOG(" -S, --Sound - Forces sound.");
|
||||
LOG(" -m f --mvol f - Set the music volume to f");
|
||||
LOG(" -s f --svol f - Set the sound volume to f");
|
||||
LOG(" -G - Regenerates the nebulae (slow)");
|
||||
LOG(" -h --help - Display this message and exit.");
|
||||
LOG(" -v - Print the version and exit");
|
||||
}
|
||||
@ -224,7 +226,8 @@ void conf_parseCLI(int argc, char** argv) {
|
||||
int option_index = 0;
|
||||
int c = 0;
|
||||
|
||||
while((c = getopt_long(argc, argv, "fF:d:j:J:W:H:MSm:s:hv",
|
||||
while((c = getopt_long(argc, argv,
|
||||
"fF:d:j:J:W:H:MSm:s:Ghv",
|
||||
long_options, &option_index)) != -1) {
|
||||
switch(c) {
|
||||
case 'f':
|
||||
@ -260,6 +263,9 @@ void conf_parseCLI(int argc, char** argv) {
|
||||
case 's':
|
||||
sound_volume(atof(optarg));
|
||||
break;
|
||||
case 'G':
|
||||
nebu_generate(SCREEN_W, SCREEN_H);
|
||||
break;
|
||||
case 'v':
|
||||
/* By now it has already displayed the version. */
|
||||
/*LOG(APPNAME": version %d.%d.%d", VMAJOR, VMINOR, VREV); */
|
||||
|
Loading…
Reference in New Issue
Block a user