Emulator: Reorder struct

This commit is contained in:
wheremyfoodat 2025-08-03 17:17:58 +03:00
commit 3c8dd1a39e

View file

@ -40,9 +40,11 @@ enum class ROMType {
class Emulator { class Emulator {
EmulatorConfig config; 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; CPU cpu;
GPU gpu; GPU gpu;
Memory memory;
Kernel kernel; Kernel kernel;
std::unique_ptr<Audio::DSPCore> dsp; std::unique_ptr<Audio::DSPCore> dsp;
Scheduler scheduler; Scheduler scheduler;