mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
fix zip loading
This commit is contained in:
parent
12ee10d3f4
commit
29e6ef31e5
@ -78,7 +78,7 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
// allocate memory to store rom
|
||||
nesrom = (unsigned char *)malloc(1024*1024*3); // 3 MB should be plenty
|
||||
nesrom = (unsigned char *)malloc(1024*1024*2); // 2 MB should be plenty
|
||||
|
||||
/*** Minimal Emulation Loop ***/
|
||||
if ( !FCEUI_Initialize() ) {
|
||||
|
@ -72,7 +72,7 @@ extern int UNIFLoad(const char *name, FCEUFILE *fp);
|
||||
extern int NSFLoad(FCEUFILE *fp);
|
||||
extern uint8 FDSBIOS[8192];
|
||||
|
||||
int GCMemROM(method)
|
||||
int GCMemROM(int method, int size)
|
||||
{
|
||||
ResetGameLoaded();
|
||||
|
||||
@ -99,7 +99,7 @@ int GCMemROM(method)
|
||||
|
||||
InitialisePads();
|
||||
|
||||
MakeFCEUFile((char *)nesrom, filelist[selection].length);
|
||||
MakeFCEUFile((char *)nesrom, size);
|
||||
|
||||
nesGameType = 0;
|
||||
|
||||
|
@ -9,4 +9,4 @@
|
||||
* NES Memory Load Game
|
||||
****************************************************************************/
|
||||
|
||||
int GCMemROM(int method);
|
||||
int GCMemROM(int method, int size);
|
||||
|
@ -300,7 +300,7 @@ int FileSelector (int method)
|
||||
StripExt(romFilename, filelist[selection].filename);
|
||||
|
||||
ShowAction ((char *)"Loading...");
|
||||
|
||||
|
||||
int size = 0;
|
||||
|
||||
switch (method)
|
||||
@ -323,7 +323,7 @@ int FileSelector (int method)
|
||||
|
||||
if (size > 0)
|
||||
{
|
||||
if(GCMemROM(method) > 0)
|
||||
if(GCMemROM(method, size) > 0)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user