mirror of
https://github.com/dborth/vbagx.git
synced 2025-01-27 17:55:27 +01:00
minor changes
This commit is contained in:
parent
af596450f7
commit
fcbefda1f5
@ -33,8 +33,7 @@ extern int offset;
|
|||||||
extern int selection;
|
extern int selection;
|
||||||
extern char currentdir[MAXPATHLEN];
|
extern char currentdir[MAXPATHLEN];
|
||||||
extern int maxfiles;
|
extern int maxfiles;
|
||||||
|
extern char romFilename[512];
|
||||||
extern char ROMFilename[512];
|
|
||||||
|
|
||||||
void AllocSaveBuffer();
|
void AllocSaveBuffer();
|
||||||
void FreeSaveBuffer();
|
void FreeSaveBuffer();
|
||||||
|
@ -85,7 +85,7 @@ ConnectShare (bool silent)
|
|||||||
strlen(GCSettings.smbip) == 0)
|
strlen(GCSettings.smbip) == 0)
|
||||||
{
|
{
|
||||||
if(!silent)
|
if(!silent)
|
||||||
WaitPrompt((char*) "Invalid network settings. Check SNES9xGX.xml.");
|
WaitPrompt((char*) "Invalid network settings. Check VBAGX.xml.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -319,7 +319,6 @@ LoadBufferFromSMB (char * sbuffer, char *filepath, int length, bool silent)
|
|||||||
|
|
||||||
if (IsZipFile (sbuffer))
|
if (IsZipFile (sbuffer))
|
||||||
{
|
{
|
||||||
WaitPrompt("In a ZIP");
|
|
||||||
boffset = UnZipFile ((unsigned char *)sbuffer, smbfile); // unzip from SMB
|
boffset = UnZipFile ((unsigned char *)sbuffer, smbfile); // unzip from SMB
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -81,7 +81,7 @@ int systemColorDepth = 0;
|
|||||||
u16 systemGbPalette[24];
|
u16 systemGbPalette[24];
|
||||||
u16 systemColorMap16[0x10000];
|
u16 systemColorMap16[0x10000];
|
||||||
//u32 systemColorMap32[0x10000];
|
//u32 systemColorMap32[0x10000];
|
||||||
u32 *systemColorMap32 = (u32 *)&systemColorMap16;
|
u32 *systemColorMap32 = NULL;
|
||||||
|
|
||||||
struct EmulatedSystem emulator =
|
struct EmulatedSystem emulator =
|
||||||
{
|
{
|
||||||
@ -509,9 +509,6 @@ bool LoadGBROM(int method)
|
|||||||
|
|
||||||
systemSaveUpdateCounter = SYSTEM_SAVE_NOT_UPDATED;
|
systemSaveUpdateCounter = SYSTEM_SAVE_NOT_UPDATED;
|
||||||
|
|
||||||
if(method == METHOD_AUTO)
|
|
||||||
method = autoLoadMethod();
|
|
||||||
|
|
||||||
switch (method)
|
switch (method)
|
||||||
{
|
{
|
||||||
case METHOD_SD:
|
case METHOD_SD:
|
||||||
|
@ -107,9 +107,6 @@ bool VMCPULoadROM(int method)
|
|||||||
GBAROMSize = 0;
|
GBAROMSize = 0;
|
||||||
rom = (u8 *)MEM2Storage;
|
rom = (u8 *)MEM2Storage;
|
||||||
|
|
||||||
if(method == METHOD_AUTO)
|
|
||||||
method = autoLoadMethod();
|
|
||||||
|
|
||||||
switch (method)
|
switch (method)
|
||||||
{
|
{
|
||||||
case METHOD_SD:
|
case METHOD_SD:
|
||||||
@ -385,18 +382,10 @@ int VMCPULoadROM(int method)
|
|||||||
|
|
||||||
loadtimeradjust = useVM = GBAROMSize = 0;
|
loadtimeradjust = useVM = GBAROMSize = 0;
|
||||||
|
|
||||||
if(method == METHOD_AUTO)
|
|
||||||
method = autoLoadMethod();
|
|
||||||
|
|
||||||
switch (method)
|
switch (method)
|
||||||
{
|
{
|
||||||
case METHOD_SD:
|
case METHOD_SD:
|
||||||
case METHOD_USB:
|
case METHOD_USB:
|
||||||
if(!ChangeFATInterface(method, NOTSILENT))
|
|
||||||
{
|
|
||||||
VMClose();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case METHOD_DVD:
|
case METHOD_DVD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user