}
void
-CommandLineArguments::print_help(const char* argv0)
+CommandLineArguments::print_help(const char* arg0)
{
std::string default_user_data_dir =
std::string(PHYSFS_getUserDir()) + WRITEDIR_NAME;
"\n"
"Environment variables:\n"
" SUPERTUX2_USER_DIR Directory for user data (savegames, etc.);\n"
- " default %s\n"
"\n"
))
- % argv0 % default_user_data_dir
+ % arg0
<< std::flush;
}
void parse_args(int argc, char** argv);
- void print_help(const char* argv0);
+ void print_help(const char* arg0);
void print_version();
void print_datadir();
{
CommandLineArguments args;
- // Do this before pre_parse_commandline, because --help now shows the
- // default user data dir.
- PhysfsSubsystem physfs_subsystem(argv[0]);
-
try
{
args.parse_args(argc, argv);
return EXIT_FAILURE;
}
+ PhysfsSubsystem physfs_subsystem(argv[0]);
+
timelog("config");
ConfigSubsystem config_subsystem;
args.merge_into(*g_config);