[asylum] Add patch.

Jon Ciesla limb at fedoraproject.org
Fri Jul 20 02:08:02 UTC 2012


commit 3e5f14916d04a4436145c52a92a17845f1015074
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Thu Jul 19 21:07:34 2012 -0500

    Add patch.

 asylum-0.3.2-paths.patch |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/asylum-0.3.2-paths.patch b/asylum-0.3.2-paths.patch
new file mode 100644
index 0000000..a0e5faa
--- /dev/null
+++ b/asylum-0.3.2-paths.patch
@@ -0,0 +1,29 @@
+--- 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];


More information about the scm-commits mailing list