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