[SCM] Packaging for TooHardForYou branch, master, updated. debian/1.3-1-28-g793f7e6
Gerfried Fuchs
rhonda at debian.at
Fri Jul 11 07:54:28 UTC 2008
The following commit has been merged in the master branch:
commit 793f7e62baab246578f553621229ceda4ede16d5
Author: Gerfried Fuchs <rhonda at debian.at>
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
More information about the Pkg-games-commits
mailing list