pkgsrc/emulators/arnold/patches/patch-ab
2005-11-03 21:34:23 +00:00

22 lines
551 B
Text

$NetBSD: patch-ab,v 1.2 2005/11/03 21:40:13 rillig Exp $
--- src/unix/main.c.orig Sun Nov 4 21:15:22 2001
+++ src/unix/main.c
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
char LocalDirectory[1024];
char ProgramDirectory[1024]="";
- getcwd(ProgramDirectory, 1024);
+ strcpy(ProgramDirectory, SHAREDIR);
sprintf(LocalDirectory,"%s/roms/amsdose/",ProgramDirectory);
@@ -94,8 +94,6 @@ LocalDirectory);
if (CPCEmulation_Initialise())
{
- chdir(ProgramDirectory);
-
CPC_SetCPCType(CPC_TYPE_CPC6128);
if (argc!=0)