mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 11:31:39 +12:00
Fix EmulatorConfig
initialization order
`config` was being consumed much too early before it has a chance to call `load`. This caused GPU to read weird uninitialized data, and then `load` called, and then further initialization to occur based on default data and the data inside of `config.toml`. `EmulatorConfig` needs to be loaded in first before any sort of initialization happens, by adding a new constructor so that it can be initialized sooner.
This commit is contained in:
parent
ceff20f57f
commit
2c57936c50
4 changed files with 7 additions and 2 deletions
|
@ -25,13 +25,13 @@ enum class ROMType {
|
|||
};
|
||||
|
||||
class Emulator {
|
||||
EmulatorConfig config;
|
||||
CPU cpu;
|
||||
GPU gpu;
|
||||
Memory memory;
|
||||
Kernel kernel;
|
||||
Crypto::AESEngine aesEngine;
|
||||
|
||||
EmulatorConfig config;
|
||||
SDL_Window* window;
|
||||
|
||||
#ifdef PANDA3DS_ENABLE_OPENGL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue