File o2em118src.dif of Package o2em
--- src/main.c
+++ src/main.c
@@ -175,7 +175,7 @@
}
else if (!launcher_flag_r)
{
- strcpy(xrom,"roms/");
+ strcpy(xrom,"/usr/share/o2em/roms/");
strcpy(romdir,file);
strcpy(file,xrom);
strcat(file,romdir);
@@ -219,7 +219,7 @@
}
else
{
- strcpy (xbios,"bios/");
+ strcpy (xbios,"/usr/share/o2em/bios/");
strcpy (biosdir,xbios);
}
file_name(xbios);
--- src/makefile.linux
+++ src/makefile.linux
@@ -1,8 +1,8 @@
CC = gcc
-CFLAGS = -O3 -Wall -fomit-frame-pointer -I/usr/include
+CFLAGS = $(RPM_OPT_FLAGS) -Wall -I/usr/include
LFLAGS = -s
-LIBALLEG = /usr/lib/liballeg.so.4.2 -lalleg_unsharable
+LIBALLEG = -lalleg-4.2.2 -lalleg_unsharable
all: o2em dis48
--- src/score.c
+++ src/score.c
@@ -22,6 +22,7 @@
#include "vmachine.h"
#include "types.h"
#include "score.h"
+#include <errno.h>
/*--------------------------------------------------
Calculate Score from given Values
--- src/vdc.c
+++ src/vdc.c
@@ -700,9 +700,9 @@
"-bios=file",
" Set the O2 bios file name/dir","",
"-biosdir=path",
- " Set the O2 bios path "," (default= bios/ )","",
+ " Set the O2 bios path "," (default= /usr/share/o2em/bios/ )","",
"-romdir=path",
- " Set the O2 roms Path "," (default= roms/ )","",
+ " Set the O2 roms Path "," (default= /usr/share/o2em/roms/ )","",
"-scshot=file",
" Set the screenshot file "," name/template","",
"-euro",