]> git.pld-linux.org Git - packages/arnold.git/blob - arnold-romsdir.patch
- Patch: get roms from /usr/share/arnold/roms not from `pwd`/roms
[packages/arnold.git] / arnold-romsdir.patch
1 --- arnold/src/unix/main.c.orig Sun Jun 15 20:11:53 2003
2 +++ arnold/src/unix/main.c      Sun Jun 15 20:12:24 2003
3 @@ -27,7 +27,7 @@
4  #ifdef HAVE_SDL
5  #include <SDL.h>
6  #endif
7 -
8 +#define DATADIR "/usr/share/arnold"
9  #include "display.h"
10  #include <string.h>
11  #include <unistd.h>
12 @@ -61,9 +61,8 @@
13  
14         {
15                 char LocalDirectory[1024];
16 -               char ProgramDirectory[1024]="";
17 +               char ProgramDirectory[1024]=DATADIR;
18                 
19 -               getcwd(ProgramDirectory, 1024);
20  
21  sprintf(LocalDirectory,"%s/roms/amsdose/",ProgramDirectory);
22         
23 @@ -89,6 +88,7 @@
24         SetDirectoryForLocation(EMULATOR_ROM_KCCOMPACT_DIR,
25  LocalDirectory);       
26  
27 +       getcwd(ProgramDirectory,1024);
28  
29         GenericInterface_Initialise();
30  
This page took 0.08623 seconds and 4 git commands to generate.