mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 03:51:39 +12:00
Slightly more robust ROM management
This commit is contained in:
parent
0647fb5b85
commit
4a12e59c2f
2 changed files with 28 additions and 7 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue