mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 15:19:53 -06:00
make timers not suck. fixes issues (Worms2 intro FMV plays at the right speed, aging cart tests get further...)
This commit is contained in:
@ -565,11 +565,15 @@ bool Init()
|
||||
{
|
||||
if (!NDSCart_SRAM::Init()) return false;
|
||||
|
||||
CartROM = NULL;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void DeInit()
|
||||
{
|
||||
if (CartROM) delete[] CartROM;
|
||||
|
||||
NDSCart_SRAM::DeInit();
|
||||
}
|
||||
|
||||
@ -606,6 +610,8 @@ bool LoadROM(const char* path, bool direct)
|
||||
// TODO: streaming mode? for really big ROMs or systems with limited RAM
|
||||
// for now we're lazy
|
||||
|
||||
if (CartROM) delete[] CartROM;
|
||||
|
||||
FILE* f = fopen(path, "rb");
|
||||
if (!f)
|
||||
{
|
||||
|
Reference in New Issue
Block a user