diff options
author | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-03 18:35:03 +0000 |
---|---|---|
committer | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-03 18:35:03 +0000 |
commit | 6949672f37c3b05f8930b132574740ec8ed03ed0 (patch) | |
tree | c5037e25ccd7385d1fa501d1278eaf18b96b8108 | |
parent | 6131e8497f63c2d6d37ab6d545de209d33ef3e44 (diff) | |
download | usdx-6949672f37c3b05f8930b132574740ec8ed03ed0.tar.gz usdx-6949672f37c3b05f8930b132574740ec8ed03ed0.tar.xz usdx-6949672f37c3b05f8930b132574740ec8ed03ed0.zip |
Fix for USDX first run and no config.ini problem (ini is saved on startup)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1220 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/UMain.pas | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas index ac8a0f6e..7e403b22 100644 --- a/Game/Code/Classes/UMain.pas +++ b/Game/Code/Classes/UMain.pas @@ -214,6 +214,10 @@ begin Ini := TIni.Create; Ini.Load; + //it's possible that this is the first run, create a .ini file if neccessary + Log.LogStatus('Write Ini', 'Initialization'); + Ini.Save; + // Load Languagefile if (Params.Language <> -1) then Language.ChangeLanguage(ILanguage[Params.Language]) @@ -313,7 +317,7 @@ begin Log.LogStatus('Effect Manager', 'Initialization'); GoldenRec := TEffectManager.Create; Log.BenchmarkEnd(1); - Log.LogBenchmark('Loading Particel System', 1); + Log.LogBenchmark('Loading Particle System', 1); // Joypad if (Ini.Joypad = 1) OR (Params.Joypad) then |