Finally figured out ZSNES, no more two vars for base cart paths.
This commit is contained in:
@@ -126,8 +126,6 @@ EXTSYM SplittedROM
|
|||||||
EXTSYM addOnStart
|
EXTSYM addOnStart
|
||||||
EXTSYM addOnSize
|
EXTSYM addOnSize
|
||||||
|
|
||||||
EXTSYM STPath, ST_Path, GNextPath, GNext_Path, SGPath, SG_Path
|
|
||||||
|
|
||||||
EXTSYM SetaCmdEnable,setaramdata
|
EXTSYM SetaCmdEnable,setaramdata
|
||||||
EXTSYM setaaccessbankr8,setaaccessbankw8,setaaccessbankr8a,setaaccessbankw8a
|
EXTSYM setaaccessbankr8,setaaccessbankw8,setaaccessbankr8a,setaaccessbankw8a
|
||||||
EXTSYM setaaccessbankr16,setaaccessbankw16,setaaccessbankr16a,setaaccessbankw16a
|
EXTSYM setaaccessbankr16,setaaccessbankw16,setaaccessbankr16a,setaaccessbankw16a
|
||||||
@@ -3409,14 +3407,6 @@ NEWSYM loadfileGUI
|
|||||||
mov edx,fname+1
|
mov edx,fname+1
|
||||||
mov dword[ZOpenFileName],edx
|
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
|
pushad
|
||||||
call loadROM
|
call loadROM
|
||||||
popad
|
popad
|
||||||
|
|||||||
@@ -668,7 +668,9 @@ void SplitSetup(char *basepath, char *basefile, unsigned int MirrorSystem)
|
|||||||
SplittedROM = true;
|
SplittedROM = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *ST_Path, *GNext_Path, *SG_Path;
|
extern char STPath;
|
||||||
|
extern char GNextPath;
|
||||||
|
extern char SGPath;
|
||||||
void SplitSupport()
|
void SplitSupport()
|
||||||
{
|
{
|
||||||
unsigned char *ROM = (unsigned char *)romdata;
|
unsigned char *ROM = (unsigned char *)romdata;
|
||||||
@@ -680,7 +682,7 @@ void SplitSupport()
|
|||||||
{
|
{
|
||||||
addOnStart = 0x200000;
|
addOnStart = 0x200000;
|
||||||
addOnSize = 0x80000;
|
addOnSize = 0x80000;
|
||||||
SplitSetup(SG_Path, "SAMEGAME.ZIP", 1);
|
SplitSetup(&SGPath, "SAMEGAME.ZIP", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
//SD Gundam G-Next add on
|
//SD Gundam G-Next add on
|
||||||
@@ -689,7 +691,7 @@ void SplitSupport()
|
|||||||
{
|
{
|
||||||
addOnStart = 0x400000;
|
addOnStart = 0x400000;
|
||||||
addOnSize = 0x80000;
|
addOnSize = 0x80000;
|
||||||
SplitSetup(GNext_Path, "G-NEXT.ZIP", 2);
|
SplitSetup(&GNextPath, "G-NEXT.ZIP", 2);
|
||||||
addOnStart = 0x200000;
|
addOnStart = 0x200000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -698,7 +700,7 @@ void SplitSupport()
|
|||||||
{
|
{
|
||||||
addOnStart = 0x100000;
|
addOnStart = 0x100000;
|
||||||
addOnSize = curromspace;
|
addOnSize = curromspace;
|
||||||
SplitSetup(ST_Path, "STBIOS.ZIP", 3);
|
SplitSetup(&STPath, "STBIOS.ZIP", 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user