Before, if there was a valid configuration file, then some command line
options did not have any effect.
#include "init.h"
+static bool displayLicense;
+
void checkForLicense()
{
if (!engine.loadData(_("data/license")))
return 1;
}
+void initConfig()
+{
+ #if UNIX
+ setupUserHomeDirectory();
+ #endif
+
+ displayLicense = loadConfig();
+}
+
/*
Chugg chugg chugg.... brrr... chugg chugg chugg...brrrrrr... chugg ch..
BRRRRRRRRRRRRRRRRRMMMMMMMMMMMMMMMMMMM!! Well, hopefully anyway! ;)
*/
void initSystem()
{
- #if UNIX
- setupUserHomeDirectory();
- #endif
-
- bool displayLicense = loadConfig();
-
long flags = SDL_INIT_VIDEO|SDL_INIT_JOYSTICK;
if (engine.useAudio)
int recordMode = REPLAY_MODE::NONE;
int requiredSection = SECTION_INTRO;
+ initConfig();
+
for (int i = 1 ; i < argc ; i++)
{
if (strcmp(argv[i], "-fullscreen") == 0) engine.fullScreen = true;
#include "headers.h"
+extern void initConfig();
extern void initSystem();
extern void cleanup();