summaryrefslogtreecommitdiff
path: root/emulators/arnold/patches/patch-ab
blob: 72d72af94e590beb5c5267e977fa635e205e1d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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)