aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/UIni.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-11 15:10:24 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-11 15:10:24 +0000
commit780d96129a06e31ed65bf4173eb18d3c7222e862 (patch)
treea9ddf58cc31e21523d9dbb7fc4755e55b7224f5b /src/base/UIni.pas
parentedf66ee430c58367ddacaac2b6ff25e5322caacd (diff)
downloadusdx-780d96129a06e31ed65bf4173eb18d3c7222e862.tar.gz
usdx-780d96129a06e31ed65bf4173eb18d3c7222e862.tar.xz
usdx-780d96129a06e31ed65bf4173eb18d3c7222e862.zip
SongDir1 template in config.ini is now created on Unix too
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1364 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base/UIni.pas')
-rw-r--r--src/base/UIni.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/UIni.pas b/src/base/UIni.pas
index b286c917..4f401b01 100644
--- a/src/base/UIni.pas
+++ b/src/base/UIni.pas
@@ -883,8 +883,9 @@ begin
IniFile.WriteString('Controller', 'Joypad', IJoypad[Joypad]);
// Directories (add a template if section is missing)
+ // Note: Value must be ' ' and not '', otherwise no key is generated on Linux
if (not IniFile.SectionExists('Directories')) then
- IniFile.WriteString('Directories', 'SongDir1', '');
+ IniFile.WriteString('Directories', 'SongDir1', ' ');
IniFile.Free;
end;