Merge pull request #101 from SimoneN64/master

Don't force users to load rom from terminal
This commit is contained in:
wheremyfoodat 2023-07-11 20:14:17 +03:00 committed by GitHub
commit 148232c0b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 96 additions and 51 deletions

View file

@ -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();

View file

@ -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();