The following commit has been merged in the master branch: commit 793f7e62baab246578f553621229ceda4ede16d5 Author: Gerfried Fuchs <[EMAIL PROTECTED]> Date: Fri Jul 11 09:13:08 2008 +0200
Patch still doesn't work, but ... diff --git a/debian/patches/02_config-and-scores-in-home b/debian/patches/02_config-and-scores-in-home index 729f7c1..4dcbe28 100644 --- a/debian/patches/02_config-and-scores-in-home +++ b/debian/patches/02_config-and-scores-in-home @@ -5,20 +5,29 @@ Index: VCS/sources/main.cpp =================================================================== --- VCS.orig/sources/main.cpp +++ VCS/sources/main.cpp -@@ -127,13 +127,14 @@ int main(int argc, char* argv[]) +@@ -22,6 +22,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <time.h> ++#include <string.h> + + //Le moteur global de jeu dont on h�rite + #include "Engine.h" +@@ -127,13 +128,15 @@ int main(int argc, char* argv[]) //Appell� par Init. void CMyEngine::ParamInit(int iWidth,int iHeight) { -+ const char* home_str = getenv("HOME"); ++ char* home_str = getenv("HOME"); ++ std::string home(home_str); SetIcon("/usr/share/games/2h4u/images/icone.png"); //Dans un premier temps, on charge le fichier de param�tres. - m_Param.initParam("data/config.dat"); -+ m_Param.initParam(home_str + "/.2h4u.config"); ++ m_Param.initParam(home + "/.2h4u.config"); - m_Highscore.loadHighscore("data/HighScores.dat"); -+ m_Highscore.loadHighscore(home_str + "/.2h4u.scores"); ++ m_Highscore.loadHighscore(home + "/.2h4u.scores"); //Puis on fait plein �cran ou fenetre suivant le cas. if (m_Param.getFullscreen()==0) -- Packaging for TooHardForYou
_______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits