aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.h
diff options
context:
space:
mode:
authorJesse Talavera-Greenberg <jesse@jesse.tg>2023-11-09 12:57:16 -0500
committerGitHub <noreply@github.com>2023-11-09 18:57:16 +0100
commit88072a02c523e26390af6bd726608b3e567f996f (patch)
tree0e7b49060e6171a32a8afc3104e6e83812a70ad9 /src/NDS.h
parent3d3e4240a05167c716437488be8cbb1dba4e8ec5 (diff)
Move NDSCart-related global state into objects (#1871)
* Move NDSCart-related global state into objects - RAII will now do the heavy lifting - Mark some methods as const or noexcept * Move GBACart-related global state into objects (#1870) - RAII will now do the heavy lifting - Mark some methods as const or noexcept - Once the `NDS` object is finalized, most of these `assert`s can go away * Make AREngine::RunCheat public (#1872) - I use it directly in melonDS DS to apply single cheats without using ARCodeFile - Before the AREngine refactor I could just redeclare the function in my code - Now I can't
Diffstat (limited to 'src/NDS.h')
-rw-r--r--src/NDS.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NDS.h b/src/NDS.h
index 1805437..127510d 100644
--- a/src/NDS.h
+++ b/src/NDS.h
@@ -26,6 +26,7 @@
#include "Platform.h"
#include "Savestate.h"
#include "types.h"
+#include "NDSCart.h"
#include "GBACart.h"
// when touching the main loop/timing code, pls test a lot of shit
@@ -259,6 +260,7 @@ extern class SPU* SPU;
extern class SPIHost* SPI;
extern class RTC* RTC;
extern class Wifi* Wifi;
+extern std::unique_ptr<NDSCart::NDSCartSlot> NDSCartSlot;
extern std::unique_ptr<GBACart::GBACartSlot> GBACartSlot;
extern class AREngine* AREngine;