1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- configurator/source/configurator.cpp.orig 2009-06-28 04:44:14.000000000 +0400
+++ configurator/source/configurator.cpp 2009-08-13 04:09:42.000000000 +0400
@@ -1330,17 +1330,12 @@
char procpath[256];
char user_path[1024];
char program_path[1024];
- sprintf(procpath, "/proc/%d/exe", pid);
- int ch = readlink(procpath,program_path,240);
- if (ch != -1)
- {
- program_path[ch] = 0;
- } else return false;
+ strcpy(program_path, "%%DATADIR%%/");
ProgramPath=wxFileName(wxString(conv(program_path))).GetPath();
//user path is easy
strncpy(user_path, getenv ("HOME"), 240);
wxFileName tfn=wxFileName(conv(user_path), wxEmptyString);
- tfn.AppendDir(_T("RigsOfRods"));
+ tfn.AppendDir(_T(".RigsOfRods"));
UserPath=tfn.GetPath();
#endif
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
@@ -3031,7 +3026,7 @@
CreateProcess(NULL, wpath, NULL, NULL, false, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi);
#endif
#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX
- execl("./RoR.bin", "", (char *) 0);
+ execl("%%PREFIX%%/bin/RoR", "", (char *) 0);
#endif
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
FSRef ref;
|