[nostalgia] Make core::shutdown return void and add GBA implementation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user