more WIP. ROM loading working, sorta. not loading saves or anything yet.

This commit is contained in:
Arisotura
2021-12-29 15:42:30 +01:00
parent aa443c6bce
commit 9529356062
10 changed files with 353 additions and 98 deletions

View File

@ -648,6 +648,9 @@ void Reset()
void Eject()
{
if (Cart) delete Cart;
Cart = nullptr;
if (CartROM) delete[] CartROM;
CartInserted = false;
@ -656,9 +659,6 @@ void Eject()
CartCRC = 0;
CartID = 0;
if (Cart) delete Cart;
Cart = nullptr;
Reset();
}