fix RA on android (#942)

This commit is contained in:
Logan McNaughton
2026-05-23 09:31:39 +02:00
committed by GitHub
parent 6223f10fae
commit 43ebc37f87
2 changed files with 3 additions and 2 deletions
-2
View File
@@ -295,9 +295,7 @@ pub async fn run() -> std::io::Result<()> {
} else {
#[cfg(feature = "gui")]
{
retroachievements::init_client(false, false, false);
ui::gui::app_window(false);
retroachievements::shutdown_client();
}
}
+3
View File
@@ -1,3 +1,4 @@
use crate::retroachievements;
use crate::ui;
#[cfg(target_os = "android")]
use crate::ui::android;
@@ -500,6 +501,7 @@ fn about_window(app: &AppWindow) {
}
pub fn app_window(is_android: bool) {
retroachievements::init_client(false, false, false);
let app = AppWindow::new().unwrap();
app.set_is_android(is_android);
about_window(&app);
@@ -521,6 +523,7 @@ pub fn app_window(is_android: bool) {
slint::CloseRequestResponse::HideWindow
});
app.run().unwrap();
retroachievements::shutdown_client();
}
pub fn run_rom(