[nostalgia] Make core::shutdown return void and add GBA implementation

This commit is contained in:
2022-03-25 01:28:26 -05:00
parent 6eb4070d97
commit 053d35b31c
7 changed files with 21 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ void StudioUI::handleKeyEvent(core::Key key, bool down) noexcept {
m_taskRunner.add(new FileDialogManager(this, &StudioUI::openProject));
break;
case core::Key::Alpha_Q:
oxIgnoreError(core::shutdown(m_ctx));
core::shutdown(m_ctx);
break;
case core::Key::Alpha_S:
save();
@@ -120,7 +120,7 @@ void StudioUI::drawMenu() noexcept {
m_acitveEditor->save();
}
if (ImGui::MenuItem("Quit", "Ctrl+Q")) {
oxIgnoreError(core::shutdown(m_ctx));
core::shutdown(m_ctx);
}
ImGui::EndMenu();
}