Removed dependency between CommandLineArguments and Physfs
[supertux.git] / src / supertux / main.cpp
index d03c54a..8342e43 100644 (file)
@@ -368,10 +368,6 @@ Main::run(int argc, char** argv)
   {
     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);
@@ -383,6 +379,8 @@ Main::run(int argc, char** argv)
       return EXIT_FAILURE;
     }
 
+    PhysfsSubsystem physfs_subsystem(argv[0]);
+
     timelog("config");
     ConfigSubsystem config_subsystem;
     args.merge_into(*g_config);