diff options
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 94663d5..4b478aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,8 @@ int main(int argc, char** argv) { chip8->SetTable(table); + chip8->LoadROM(filename); + Platform platform( WINDOW_TITLE, VIDEO_WIDTH * videoScale, @@ -31,8 +33,6 @@ int main(int argc, char** argv) { std::thread timerThread(&Chip8::TimerUpdateThread, chip8, &platform); - chip8->LoadROM(filename); - bool quit = false; while (!quit) { quit = platform.ProcessInput(&chip8->keypad); |