Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > e6c418a16cd2c61a6e2683509b8aa16d > files > 3

vegastrike-0.5.0-3mdv2008.0.src.rpm

diff -urN vegastrike-0.4.1.orig/launcher/saveinterface.cpp vegastrike-0.4.1/launcher/saveinterface.cpp
--- vegastrike-0.4.1.orig/launcher/saveinterface.cpp	2003-09-18 22:43:38.000000000 -0400
+++ vegastrike-0.4.1/launcher/saveinterface.cpp	2003-10-02 21:19:31.000000000 -0400
@@ -172,7 +172,7 @@
 	stupod *s= (stupod*)lpParameter;
         progress=false;
         Help ("Please wait while vegastrike loads...","Please wait while vegastrike loads...");
-		int pid=spawnl(P_WAIT,"./vegastrike","./vegastrike",s->num?s->num:(std::string("\"")+s->my_mission+"\"").c_str(),s->num?(std::string("\"")+s->my_mission+"\"").c_str():NULL,NULL);
+		int pid=spawnl(P_WAIT,"/usr/games/vegastrike","/usr/games/vegastrike",s->num?s->num:(std::string("\"")+s->my_mission+"\"").c_str(),s->num?(std::string("\"")+s->my_mission+"\"").c_str():NULL,NULL);
 		if (pid==-1) {
 			if (chdir("bin")==0) {
 				spawnl(P_WAIT,"./vegastrike","./vegastrike",s->num?s->num:(std::string("\"")+s->my_mission+"\"").c_str(),s->num?(std::string("\"")+s->my_mission+"\"").c_str():NULL,NULL);
@@ -190,7 +190,7 @@
 
 #ifndef _WIN32
 void changeToData () {
-   chdir ("/usr/games/vegastrike/data");
+   chdir ("/usr/share/games/vegastrike");
    FILE * fp = fopen ("vegastrike.config","r");
    if (!fp){
 	   chdir ("/usr/local/vegastrike/data");
@@ -218,7 +218,7 @@
    fflush (stdout);
 #ifndef _WIN32
    changeToData();
-   execlp ("vegastrike","/usr/local/bin/vegastrike",num,my_mission.c_str(),NULL);   
+   execlp ("vegastrike","/usr/games/vegastrike",num,my_mission.c_str(),NULL);   
 #else
    DWORD id;
    HANDLE hThr=CreateThread(NULL,0,DrawStartupDialog,(void *)new stupod (strdup (my_mission.c_str()),strdup (num)),0,&id);
@@ -230,7 +230,7 @@
 #ifndef _WIN32
 
    changeToData();
-   execlp ("vegastrike","/usr/local/bin/vegastrike",my_mission.c_str(),NULL);   
+   execlp ("vegastrike","/usr/games/vegastrike",my_mission.c_str(),NULL);   
 #else
    DWORD id;
    HANDLE hThr=CreateThread(NULL,0,DrawStartupDialog,(void *)new stupod (strdup (my_mission.c_str()),NULL),0,&id);
@@ -315,7 +315,7 @@
 #else
 		pid=fork();
 		if (pid==-1) {
-			execlp("vssetup","vssetup",NULL);
+			execlp("/usr/games/vssetup","/usr/games/vssetup",NULL);
 			return;
 		}
 #endif