aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.h
diff options
context:
space:
mode:
authorJesse Talavera-Greenberg <jesse@jesse.tg>2023-11-25 12:32:09 -0500
committerGitHub <noreply@github.com>2023-11-25 18:32:09 +0100
commit346dd4006ea1283136095d5c43f602324a095092 (patch)
treeedf04631782bbfcdb48eac79b79aebb11b40f479 /src/NDS.h
parent651b0f680c4531558990a5beb0e638968009dc51 (diff)
Move all core types into namespaces (#1886)
* Reorganize namespaces - Most types are now moved into the `melonDS` namespace - Only good chance to do this for a while, since a big refactor is next * Fix the build
Diffstat (limited to 'src/NDS.h')
-rw-r--r--src/NDS.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/NDS.h b/src/NDS.h
index a1155ba..7bfad62 100644
--- a/src/NDS.h
+++ b/src/NDS.h
@@ -34,22 +34,16 @@
// with this enabled, to make sure it doesn't desync
//#define DEBUG_CHECK_DESYNC
+namespace melonDS
+{
class SPU;
class SPIHost;
class RTC;
class Wifi;
class AREngine;
-
-namespace Melon
-{
class GPU;
-}
-
-namespace ARMJIT
-{
class ARMJIT;
-}
namespace NDS
{
@@ -273,8 +267,8 @@ extern class RTC* RTC;
extern class Wifi* Wifi;
extern std::unique_ptr<NDSCart::NDSCartSlot> NDSCartSlot;
extern std::unique_ptr<GBACart::GBACartSlot> GBACartSlot;
-extern std::unique_ptr<Melon::GPU> GPU;
-extern std::unique_ptr<ARMJIT::ARMJIT> JIT;
+extern std::unique_ptr<GPU> GPU;
+extern std::unique_ptr<ARMJIT> JIT;
extern class AREngine* AREngine;
const u32 ARM7WRAMSize = 0x10000;
@@ -394,4 +388,5 @@ void ARM7IOWrite32(u32 addr, u32 val);
}
+}
#endif // NDS_H