aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2023-11-04 17:28:16 +0100
committerArisotura <thetotalworm@gmail.com>2023-11-04 17:28:16 +0100
commit8f1b0d4a052db068a029cd5784e52da7ecc9813e (patch)
treea979e06487722e247403a2cf2e19f46c7adc2c0c /src/NDS.cpp
parent2bd09eafebbc98e2e2b9fbb023b31551ccd8cf12 (diff)
convert AREngine
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 2fdbf63..05a7721 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -183,6 +183,8 @@ class SPIHost* SPI;
class RTC* RTC;
class Wifi* Wifi;
+class AREngine* AREngine;
+
bool Running;
bool RunningGame;
@@ -231,7 +233,7 @@ bool Init()
if (!DSi::Init()) return false;
- if (!AREngine::Init()) return false;
+ AREngine = new class AREngine();
return true;
}
@@ -262,7 +264,7 @@ void DeInit()
DSi::DeInit();
- AREngine::DeInit();
+ delete AREngine; AREngine = nullptr;
UnregisterEventFunc(Event_Div, 0);
UnregisterEventFunc(Event_Sqrt, 0);
@@ -671,7 +673,7 @@ void Reset()
SPU->SetDegrade10Bit(degradeAudio);
- AREngine::Reset();
+ AREngine->Reset();
}
void Start()