char* level_startup_file = 0;
bool launch_leveleditor_mode = false;
bool launch_worldmap_mode = false;
+bool flip_levels_mode = false;
/* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
char *st_dir, *st_save_dir;
extern char* level_startup_file;
extern bool launch_leveleditor_mode;
extern bool launch_worldmap_mode;
+ extern bool flip_levels_mode;
/* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
extern char* st_dir;
{
launch_worldmap_mode = true;
}
+ else if (strcmp(argv[i], "--flip-levels") == 0)
+ {
+ flip_levels_mode = true;
+ }
else if (strcmp(argv[i], "--datadir") == 0
|| strcmp(argv[i], "-d") == 0 )
{
" Define how joystick buttons and axis should be mapped\n"
" --leveleditor Opens the leveleditor in a file.\n"
" --worldmap Opens the specified worldmap file.\n"
+ " --flip-levels Flip levels upside-down.\n"
" -d, --datadir DIR Load Game data from DIR (default: automatic)\n"
" --debug Enables the debug mode, which is useful for developers.\n"
" --help Display a help message summarizing command-line\n"
/* Display the usage message: */
- fprintf(fi, _("Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug] | [--usage | --help | --version] [--leveleditor] [--worldmap] FILENAME\n"),
+ fprintf(fi, _("Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug] | [--usage | --help | --version] [--leveleditor] [--worldmap] [--flip-levels] FILENAME\n"),
prog);