also fix crashes when inserting/ejecting a NDS cart while nothing is loaded

This commit is contained in:
Arisotura
2024-11-17 15:43:22 +01:00
parent 0a4287c6ad
commit 871a167d8b
4 changed files with 41 additions and 22 deletions

View File

@ -33,9 +33,6 @@
#include "NDSCart.h"
#include "GBACart.h"
using Keep = std::monostate;
using UpdateConsoleNDSArgs = std::variant<Keep, std::unique_ptr<melonDS::NDSCart::CartCommon>>;
using UpdateConsoleGBAArgs = std::variant<Keep, std::unique_ptr<melonDS::GBACart::CartCommon>>;
namespace melonDS
{
class NDS;