mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-01 16:35:11 +01:00
compiling fix
This commit is contained in:
parent
2c59c29222
commit
1c50479099
@ -260,7 +260,7 @@ int MemCPUWriteBatteryFile(char * membuffer)
|
|||||||
bool LoadBatteryOrState(char * filepath, int action, bool silent)
|
bool LoadBatteryOrState(char * filepath, int action, bool silent)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
int offset = 0;
|
size_t offset = 0;
|
||||||
int device;
|
int device;
|
||||||
|
|
||||||
if(!FindDevice(filepath, &device))
|
if(!FindDevice(filepath, &device))
|
||||||
@ -350,9 +350,9 @@ bool LoadBatteryOrStateAuto(int action, bool silent)
|
|||||||
bool SaveBatteryOrState(char * filepath, int action, bool silent)
|
bool SaveBatteryOrState(char * filepath, int action, bool silent)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
int offset = 0;
|
size_t offset = 0;
|
||||||
int datasize = 0; // we need the actual size of the data written
|
size_t datasize = 0; // we need the actual size of the data written
|
||||||
int imgSize = 0; // image screenshot bytes written
|
size_t imgSize = 0; // image screenshot bytes written
|
||||||
int device;
|
int device;
|
||||||
|
|
||||||
if(!FindDevice(filepath, &device))
|
if(!FindDevice(filepath, &device))
|
||||||
@ -939,7 +939,7 @@ bool LoadGBROM()
|
|||||||
gbRomSize = LoadSzFile(szpath, (unsigned char *)gbRom);
|
gbRomSize = LoadSzFile(szpath, (unsigned char *)gbRom);
|
||||||
break;
|
break;
|
||||||
case DEVICE_DVD:
|
case DEVICE_DVD:
|
||||||
gbRomSize = SzExtractFile(browserList[browser.selIndex].offset, (unsigned char *)gbRom);
|
gbRomSize = SzExtractFile(browserList[browser.selIndex].filenum, (unsigned char *)gbRom);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user