Some JIT fixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user