Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > 5b2b306bbd5d3cfb4a1f4ae48e5e0c00 > files > 4

egoboo-2.8.1-11.mga9.src.rpm

--- egoboo-2.8.1/game/platform/file_linux.c.conf_dir~	2010-11-22 01:05:39.000000000 +0100
+++ egoboo-2.8.1/game/platform/file_linux.c	2012-01-22 16:31:45.935532904 +0100
@@ -66,7 +66,7 @@ void sys_fs_init()
 
     // grab the user's home directory
     userhome = getenv( "HOME" );
-    snprintf( linux_userdataPath, SDL_arraysize( linux_userdataPath ), "%s/.egoboo-2.x", userhome );
+    snprintf( linux_userdataPath, SDL_arraysize( linux_userdataPath ), "%s/.egoboo", userhome );
 
 #if defined(_NIX_PREFIX) && defined(PREFIX)
     // the access to these directories is completely unknown
@@ -74,14 +74,14 @@ void sys_fs_init()
     // so that the program will compile and install just like any other
     // .rpm or .deb package.
 
-    strncpy( linux_configPath, PREFIX "/etc/egoboo-2.x",         SDL_arraysize( linux_configPath ) );
+    strncpy( linux_configPath, PREFIX "/share/games/egoboo/",         SDL_arraysize( linux_configPath ) );
     strncpy( linux_binaryPath, PREFIX "/games/",                  SDL_arraysize( linux_binaryPath ) );
-    strncpy( linux_dataPath,   PREFIX "/share/games/egoboo-2.x", SDL_arraysize( linux_dataPath ) );
+    strncpy( linux_dataPath,   PREFIX "/share/games/egoboo/", SDL_arraysize( linux_dataPath ) );
 #else
     // these are read-only directories
-    strncpy( linux_configPath, "/etc/egoboo-2.x/",         SDL_arraysize( linux_configPath ) );
+    strncpy( linux_configPath, "/share/games/egoboo/",         SDL_arraysize( linux_configPath ) );
     strncpy( linux_binaryPath, "/games/",                  SDL_arraysize( linux_binaryPath ) );
-    strncpy( linux_dataPath,   "/share/games/egoboo-2.x/", SDL_arraysize( linux_dataPath ) );
+    strncpy( linux_dataPath,   "/share/games/egoboo/", SDL_arraysize( linux_dataPath ) );
 #endif
 
     // the log file cannot be started until there is a user data path to dump the file into