fix locale load 0.9.19
authornemo
Fri, 31 May 2013 14:47:07 -0400
branch0.9.19
changeset 9093 4114ce5d885d
parent 9092 164690ff1408
child 9094 2cdb0ed3813a
child 9095 17ee5231f31f
fix locale load
QTfrontend/main.cpp
share/hedgewars/Data/Maps/Basketball/map.lua
share/hedgewars/Data/Maps/CTF_Blizzard/map.lua
share/hedgewars/Data/Maps/Control/map.lua
share/hedgewars/Data/Maps/Knockball/map.lua
share/hedgewars/Data/Maps/TrophyRace/map.lua
--- a/QTfrontend/main.cpp	Fri May 31 16:49:11 2013 +0200
+++ b/QTfrontend/main.cpp	Fri May 31 14:47:07 2013 -0400
@@ -222,12 +222,12 @@
         }
         else // couldn't retrieve documents folder? almost impossible, but in case fall back to classic path
         {
-            checkForDir(cfgdir->absolutePath() + "/.hedgewars");
-            cfgdir->cd(".hedgewars");
+            checkForDir(cfgdir->absolutePath() + "/.hedgewars_0.9.19");
+            cfgdir->cd(".hedgewars_0.9.19");
         }
 #else
-        checkForDir(cfgdir->absolutePath() + "/.hedgewars");
-        cfgdir->cd(".hedgewars");
+        checkForDir(cfgdir->absolutePath() + "/.hedgewars_0.9.19");
+        cfgdir->cd(".hedgewars_0.9.19");
 #endif
     }
 
--- a/share/hedgewars/Data/Maps/Basketball/map.lua	Fri May 31 16:49:11 2013 +0200
+++ b/share/hedgewars/Data/Maps/Basketball/map.lua	Fri May 31 14:47:07 2013 -0400
@@ -1,6 +1,6 @@
 -- Hedgewars - Basketball for 2+ Players
 
-HedgewarsScriptLoad("Scripts/Locale.lua")()
+HedgewarsScriptLoad("/Scripts/Locale.lua")
 
 local score = {[0] = 0, [1] = 0, [2] = 0, [3] = 0, [4] = 0, [5] = 0}
 
--- a/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Fri May 31 16:49:11 2013 +0200
+++ b/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Fri May 31 14:47:07 2013 -0400
@@ -91,7 +91,7 @@
 -- add support for more players
 -- re-enable sudden death, but set water rise to 0
 
-HedgewarsScriptLoad("Scripts/Locale.lua")()
+HedgewarsScriptLoad("/Scripts/Locale.lua")
 
 ---------------------------------------------------------------
 ----------lots of bad variables and things
--- a/share/hedgewars/Data/Maps/Control/map.lua	Fri May 31 16:49:11 2013 +0200
+++ b/share/hedgewars/Data/Maps/Control/map.lua	Fri May 31 14:47:07 2013 -0400
@@ -49,7 +49,7 @@
 --script begins
 -----------------
 
-HedgewarsScriptLoad("Scripts/Locale.lua")()
+HedgewarsScriptLoad("/Scripts/Locale.lua")
 
 ---------------------------------------------------------------
 ----------lots of bad variables and things
--- a/share/hedgewars/Data/Maps/Knockball/map.lua	Fri May 31 16:49:11 2013 +0200
+++ b/share/hedgewars/Data/Maps/Knockball/map.lua	Fri May 31 14:47:07 2013 -0400
@@ -1,6 +1,6 @@
 -- Hedgewars - Knockball for 2+ Players
 
-HedgewarsScriptLoad("Scripts/Locale.lua")()
+HedgewarsScriptLoad("/Scripts/Locale.lua")
 
 local score = {[0] = 0, [1] = 0, [2] = 0, [3] = 0, [4] = 0, [5] = 0}
 
--- a/share/hedgewars/Data/Maps/TrophyRace/map.lua	Fri May 31 16:49:11 2013 +0200
+++ b/share/hedgewars/Data/Maps/TrophyRace/map.lua	Fri May 31 14:47:07 2013 -0400
@@ -1,6 +1,6 @@
 -- Hedgewars - Roperace for 2+ Players
 
-HedgewarsScriptLoad("Scripts/Locale.lua")()
+HedgewarsScriptLoad("/Scripts/Locale.lua")
 
 -- store number of hedgehogs
 local numhhs = 0