Allow overriding config/data paths in emulator

This commit is contained in:
Jonian Guveli 2024-07-09 14:48:22 +03:00
parent 0a49dc0af7
commit ea03d135da
2 changed files with 8 additions and 4 deletions

View file

@ -17,7 +17,10 @@ __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 1;
#endif
Emulator::Emulator()
: config(getConfigPath()), kernel(cpu, memory, gpu, config), cpu(memory, kernel, *this), gpu(memory, config), memory(cpu.getTicksRef(), config),
: Emulator(getConfigPath()) {}
Emulator::Emulator(const std::filesystem::path& configPath)
: config(configPath), kernel(cpu, memory, gpu, config), cpu(memory, kernel, *this), gpu(memory, config), memory(cpu.getTicksRef(), config),
cheats(memory, kernel.getServiceManager().getHID()), lua(*this), running(false)
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
,