gpgx - support up to 32MB roms (fix #543 probably)
This commit is contained in:
parent
708bb4fa93
commit
802fb54fad
|
@ -70,8 +70,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
// http://www.sega-16.com/forum/showthread.php?4398-Forgotten-Worlds-giving-you-GAME-OVER-immediately-Fix-inside&highlight=forgotten%20worlds
|
// http://www.sega-16.com/forum/showthread.php?4398-Forgotten-Worlds-giving-you-GAME-OVER-immediately-Fix-inside&highlight=forgotten%20worlds
|
||||||
|
|
||||||
//hack, don't use
|
//hack, don't use
|
||||||
//romfile = File.ReadAllBytes(@"D:\encodes\bizhawksrc\output\SANIC CD\PierSolar (E).bin");
|
if (rom != null && rom.Length > 32 * 1024 * 1024)
|
||||||
if (rom != null && rom.Length > 16 * 1024 * 1024)
|
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("ROM too big! Did you try to load a CD as a ROM?");
|
throw new InvalidOperationException("ROM too big! Did you try to load a CD as a ROM?");
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#ifndef _LOADROM_H_
|
#ifndef _LOADROM_H_
|
||||||
#define _LOADROM_H_
|
#define _LOADROM_H_
|
||||||
|
|
||||||
#define MAXROMSIZE 10485760
|
#define MAXROMSIZE (32*1024*1024)
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue