From 6949672f37c3b05f8930b132574740ec8ed03ed0 Mon Sep 17 00:00:00 2001 From: mogguh Date: Sun, 3 Aug 2008 18:35:03 +0000 Subject: 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 --- Game/Code/Classes/UMain.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Game') 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 -- cgit v1.2.3