]> git.pld-linux.org Git - packages/arnold.git/commitdiff
- Patch: get roms from /usr/share/arnold/roms not from `pwd`/roms
authoradasi <adasi@pld-linux.org>
Sun, 15 Jun 2003 18:17:20 +0000 (18:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arnold-romsdir.patch -> 1.1

arnold-romsdir.patch [new file with mode: 0644]

diff --git a/arnold-romsdir.patch b/arnold-romsdir.patch
new file mode 100644 (file)
index 0000000..0b9a818
--- /dev/null
@@ -0,0 +1,30 @@
+--- arnold/src/unix/main.c.orig        Sun Jun 15 20:11:53 2003
++++ arnold/src/unix/main.c     Sun Jun 15 20:12:24 2003
+@@ -27,7 +27,7 @@
+ #ifdef HAVE_SDL
+ #include <SDL.h>
+ #endif
+-
++#define DATADIR "/usr/share/arnold"
+ #include "display.h"
+ #include <string.h>
+ #include <unistd.h>
+@@ -61,9 +61,8 @@
+       {
+               char LocalDirectory[1024];
+-              char ProgramDirectory[1024]="";
++              char ProgramDirectory[1024]=DATADIR;
+               
+-              getcwd(ProgramDirectory, 1024);
+ sprintf(LocalDirectory,"%s/roms/amsdose/",ProgramDirectory);
+       
+@@ -89,6 +88,7 @@
+       SetDirectoryForLocation(EMULATOR_ROM_KCCOMPACT_DIR,
+ LocalDirectory);      
++      getcwd(ProgramDirectory,1024);
+       GenericInterface_Initialise();
This page took 0.19433 seconds and 4 git commands to generate.