Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37403997
en ru br
Репозитории ALT

Группа :: Игры/Прочее
Пакет: 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];
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin