Группа :: Игры/Прочее
Пакет: asylum
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: asylum-0.3.2-paths.patch
Скачать
Скачать
--- file.c~ 2008-12-09 22:12:29.000000000 -0600
+++ file.c 2012-07-19 16:01:08.614352931 -0500
@@ -195,18 +195,18 @@
void set_paths()
{
-#ifdef RESOURCEPATH
- if (chdir(RESOURCEPATH) == 0)
- {
- strcpy(resource_path, RESOURCEPATH);
- strcpy(score_path, SCOREPATH);
+//#ifdef RESOURCEPATH
+// if (chdir(RESOURCEPATH) == 0)
+// {
+ strcpy(resource_path, "/usr/share/asylum");
+ strcpy(score_path, "/var/games/asylum");
/* We could fall back to ~/.asylum/ if SCOREPATH is not writable.
However just assuming the current directory is ok is not cool. */
return;
- }
-#endif
+// }
+//#endif
- fprintf(stderr, "Running as uninstalled, looking for files in local directory.\n");
+// fprintf(stderr, "Running as uninstalled, looking for files in local directory.\n");
#ifdef HAVE_GET_EXE_PATH
char exe_path[240];