Don't force users to load rom from terminal or by dragging and dropping onto executable file. Instead, open a blank window and use SDL's drag&drop feature

This commit is contained in:
SimoneN64 2023-07-10 20:48:13 +02:00 committed by wheremyfoodat
parent 008f0bfb84
commit 6ce861624d
5 changed files with 179 additions and 149 deletions

View file

@ -47,7 +47,7 @@ class Emulator {
static constexpr u32 width = 400;
static constexpr u32 height = 240 * 2; // * 2 because 2 screens
ROMType romType = ROMType::None;
bool running = true;
bool running = true, romLoaded = false;
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
HttpServer httpServer;
@ -64,6 +64,7 @@ class Emulator {
Emulator();
~Emulator();
void stop();
void step();
void render();
void reset();

View file

@ -22,6 +22,7 @@ enum class GPUInterrupt : u8 {
class Kernel;
class GPUService {
bool registerInterruptRelayQueueBeenHere = false;
Handle handle = KernelHandles::GPU;
Memory& mem;
GPU& gpu;