From 3c8dd1a39ed340af9bcd466a252bd5a35b5c6e09 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 3 Aug 2025 17:17:58 +0300 Subject: [PATCH] Emulator: Reorder struct --- include/emulator.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/emulator.hpp b/include/emulator.hpp index 366f86f2..f7d947f6 100644 --- a/include/emulator.hpp +++ b/include/emulator.hpp @@ -40,9 +40,11 @@ enum class ROMType { class Emulator { EmulatorConfig config; + + Memory memory; + // We want memory to be constructed before the rest of the emulator, so it's at the top of the struct CPU cpu; GPU gpu; - Memory memory; Kernel kernel; std::unique_ptr dsp; Scheduler scheduler;