Blob Blame History Raw
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,"vegastrike","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/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","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","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);