Some JIT fixes

This commit is contained in:
irisz64
2025-07-04 17:07:54 +02:00
parent 897abe8c2b
commit 444e2f56a3
6 changed files with 32 additions and 26 deletions

View File

@@ -108,7 +108,7 @@ void KaizenGui::HandleInput(SDL_Event event) {
{
auto keys = SDL_GetKeyboardState(nullptr);
if((keys[SDL_SCANCODE_LCTRL] || keys[SDL_SCANCODE_RCTRL]) && keys[SDL_SCANCODE_O]) {
FileDialog();
fileDialogOpen = true;
}
if(core->romLoaded) {
@@ -153,7 +153,7 @@ void KaizenGui::RenderUI() {
if(ImGui::BeginMainMenuBar()) {
if(ImGui::BeginMenu("File")) {
if(ImGui::MenuItem("Open", "Ctrl-O")) {
FileDialog();
fileDialogOpen = true;
}
if(ImGui::MenuItem("Exit")) {
quit = true;
@@ -237,6 +237,11 @@ void KaizenGui::RenderUI() {
}
core->parallel.UpdateScreen(*core.get(), false);
if(fileDialogOpen) {
fileDialogOpen = false;
FileDialog();
}
}
void KaizenGui::LoadROM(const std::string &path) noexcept {