diff --git a/zsnes/src/init.asm b/zsnes/src/init.asm index 04003fab..000b6e3c 100644 --- a/zsnes/src/init.asm +++ b/zsnes/src/init.asm @@ -3410,20 +3410,13 @@ NEWSYM loadfileGUI mov dword[ZOpenFileName],edx ;This is to get the C stuff to see these variables - xor ecx,ecx -.pathcopy - mov edx,dword[STPath+ecx] - mov dword[ST_Path+ecx],edx - mov edx,dword[GNextPath+ecx] - mov dword[GNext_Path+ecx],edx - mov edx,dword[SGPath+ecx] - mov dword[SG_Path+ecx],edx - add ecx,4 - cmp ecx,1024 - je .donepathcopy - jmp .pathcopy + mov ebx,STPath + mov [ST_Path],ebx + mov ebx,GNextPath + mov [GNext_Path],ebx + mov ebx,SGPath + mov [SG_Path],ebx -.donepathcopy pushad call loadROM popad diff --git a/zsnes/src/initc.c b/zsnes/src/initc.c index 55344957..dd79efa7 100755 --- a/zsnes/src/initc.c +++ b/zsnes/src/initc.c @@ -668,9 +668,7 @@ void SplitSetup(char *basepath, char *basefile, unsigned int MirrorSystem) SplittedROM = true; } -char ST_Path[1024]; -char GNext_Path[1024]; -char SG_Path[1024]; +char *ST_Path, *GNext_Path, *SG_Path; void SplitSupport() { unsigned char *ROM = (unsigned char *)romdata;