mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-20 14:01:44 +12:00
Merge pull request #101 from SimoneN64/master
Don't force users to load rom from terminal
This commit is contained in:
commit
148232c0b2
5 changed files with 96 additions and 51 deletions
|
@ -61,12 +61,18 @@ class Emulator {
|
|||
std::optional<std::filesystem::path> romPath = std::nullopt;
|
||||
|
||||
public:
|
||||
// Decides whether to reload or not reload the ROM when resetting. We use enum class over a plain bool for clarity.
|
||||
// If NoReload is selected, the emulator will not reload its selected ROM. This is useful for things like booting up the emulator, or resetting to
|
||||
// change ROMs. If Reload is selected, the emulator will reload its selected ROM. This is useful for eg a "reset" button that keeps the current ROM
|
||||
// and just resets the emu
|
||||
enum class ReloadOption { NoReload, Reload };
|
||||
|
||||
Emulator();
|
||||
~Emulator();
|
||||
|
||||
void step();
|
||||
void render();
|
||||
void reset();
|
||||
void reset(ReloadOption reload);
|
||||
void run();
|
||||
void runFrame();
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@ class GPUService {
|
|||
u32 privilegedProcess;
|
||||
std::optional<Handle> interruptEvent;
|
||||
|
||||
// Number of threads registered via RegisterInterruptRelayQueue
|
||||
u32 gspThreadCount = 0;
|
||||
|
||||
MAKE_LOG_FUNCTION(log, gspGPULogger)
|
||||
void processCommandBuffer();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue