Finally figured out ZSNES, no more two vars for base cart paths.

This commit is contained in:
n-a-c-h
2004-01-13 23:27:04 +00:00
parent 4459682a02
commit d0f86d6a9b
2 changed files with 6 additions and 14 deletions

View File

@@ -126,8 +126,6 @@ EXTSYM SplittedROM
EXTSYM addOnStart
EXTSYM addOnSize
EXTSYM STPath, ST_Path, GNextPath, GNext_Path, SGPath, SG_Path
EXTSYM SetaCmdEnable,setaramdata
EXTSYM setaaccessbankr8,setaaccessbankw8,setaaccessbankr8a,setaaccessbankw8a
EXTSYM setaaccessbankr16,setaaccessbankw16,setaaccessbankr16a,setaaccessbankw16a
@@ -3409,14 +3407,6 @@ NEWSYM loadfileGUI
mov edx,fname+1
mov dword[ZOpenFileName],edx
;This is to get the C stuff to see these variables
mov ebx,STPath
mov [ST_Path],ebx
mov ebx,GNextPath
mov [GNext_Path],ebx
mov ebx,SGPath
mov [SG_Path],ebx
pushad
call loadROM
popad

View File

@@ -668,7 +668,9 @@ void SplitSetup(char *basepath, char *basefile, unsigned int MirrorSystem)
SplittedROM = true;
}
char *ST_Path, *GNext_Path, *SG_Path;
extern char STPath;
extern char GNextPath;
extern char SGPath;
void SplitSupport()
{
unsigned char *ROM = (unsigned char *)romdata;
@@ -680,7 +682,7 @@ void SplitSupport()
{
addOnStart = 0x200000;
addOnSize = 0x80000;
SplitSetup(SG_Path, "SAMEGAME.ZIP", 1);
SplitSetup(&SGPath, "SAMEGAME.ZIP", 1);
}
//SD Gundam G-Next add on
@@ -689,7 +691,7 @@ void SplitSupport()
{
addOnStart = 0x400000;
addOnSize = 0x80000;
SplitSetup(GNext_Path, "G-NEXT.ZIP", 2);
SplitSetup(&GNextPath, "G-NEXT.ZIP", 2);
addOnStart = 0x200000;
}
@@ -698,7 +700,7 @@ void SplitSupport()
{
addOnStart = 0x100000;
addOnSize = curromspace;
SplitSetup(ST_Path, "STBIOS.ZIP", 3);
SplitSetup(&STPath, "STBIOS.ZIP", 3);
}
}