Slightly more robust ROM management

This commit is contained in:
wheremyfoodat 2023-07-07 13:39:35 +03:00
parent 0647fb5b85
commit 4a12e59c2f
2 changed files with 28 additions and 7 deletions

View file

@ -5,6 +5,7 @@
#include <filesystem>
#include <fstream>
#include <optional>
#include "PICA/gpu.hpp"
#include "cpu.hpp"
@ -25,7 +26,7 @@ class Emulator {
GLStateManager gl;
SDL_Window* window;
SDL_GLContext glContext;
SDL_GameController* gameController;
SDL_GameController* gameController = nullptr;
int gameControllerID;
// Variables to keep track of whether the user is controlling the 3DS analog stick with their keyboard
@ -44,6 +45,8 @@ class Emulator {
std::ifstream loadedELF;
NCSD loadedNCSD;
std::optional<std::filesystem::path> romPath = std::nullopt;
public:
Emulator();