Browse Source

make test version able to run in any dir

Pal Lockheart 7 years ago
parent
commit
122f3b5c67
1 changed files with 1 additions and 2 deletions
  1. 1 2
      main.c

+ 1 - 2
main.c

@@ -525,6 +525,7 @@ main(
 
    UTIL_OpenLog();
 
+#if !defined(UNIT_TEST) || defined(UNIT_TEST_GAME_INIT)
    PAL_LoadConfig(TRUE);
 
    //
@@ -540,8 +541,6 @@ main(
    //
    if (gConfig.fLaunchSetting)
 	   return 0;
-
-#if !defined(UNIT_TEST) || defined(UNIT_TEST_GAME_INIT)
    //
    // Initialize everything
    //