File neo4all-paths.patch of Package neo4all

Index: neo4all-src-rc4/convertneo/src/fileio.c
===================================================================
--- neo4all-src-rc4.orig/convertneo/src/fileio.c
+++ neo4all-src-rc4/convertneo/src/fileio.c
@@ -173,8 +173,9 @@ void open_bios(void)
 {
     FILE *f;
     char *romfile;
-    char *path = "bios"; //CF_STR(cf_get_item_by_name("rompath"));
-    int len = strlen(path) + 15;
+    char *path = "/usr/share/neo4all/bios"; //CF_STR(cf_get_item_by_name("rompath"));
+    int len = strlen(path) + 150;
+
 
     if (conf_game!=NULL) free_bios_memory();
 
@@ -194,7 +195,6 @@ void open_bios(void)
     memset(memory.video, 0, 0x20000);
 
     romfile = (char *) calloc(1,len);
-    memset(romfile, 0, len);
     if (!conf_special_bios) {
       memory.bios = (Uint8 *) calloc(1,0x20000);
       memory.bios_size=0x20000;
Index: neo4all-src-rc4/convertneo/src/main.c
===================================================================
--- neo4all-src-rc4.orig/convertneo/src/main.c
+++ neo4all-src-rc4/convertneo/src/main.c
@@ -156,7 +156,7 @@ static char *get_new_filename_prefetch_2
 		str[strlen(str)]='e';
 		str[strlen(str)]=0;
 	}
-	strcpy(real,"prefetch/");
+        strcpy(real,"/usr/share/neo4all/prefetch/");
 	for(i=strlen(str)-1;i>=0;i--)
 		if ((str[i]=='/')||(str[i]=='\\'))
 			break;
@@ -174,7 +174,8 @@ static char *get_new_filename_prefetch(c
 	if (!strlen(conf_game))
 		return get_new_filename_prefetch_2(filename);
 	char *str=(char *)calloc(128+strlen(conf_game),1);
-	strcpy(str,"prefetch/");
+	strcpy(str,"/usr/share/neo4all/prefetch/");
+
 	strcat(str,conf_game);
 	strcat(str,".pre");
 //	printf("\nTrying prefetch '%s' ...\n",str);
@@ -501,7 +502,7 @@ static char *usage_msg= \
 int main(int argc, char *argv[])
 {
     int i;
-    dr_load_driver("romrc");
+    dr_load_driver("/usr/share/neo4all/romrc");
     if (argc<2)
     {
 #ifdef WIN32
openSUSE Build Service is sponsored by