windows paths

This commit is contained in:
2025-11-14 10:11:11 +01:00
parent e435be4d94
commit ec2a2ef44d
2 changed files with 14 additions and 9 deletions
@@ -871,13 +871,17 @@ pub fn run() {
if !games_folder.is_empty() {
// Load ETI games from the game.db resource - this MUST succeed
let game_db_path = match app_handle_clone.path().resolve("game.db", tauri::path::BaseDirectory::Resource) {
Ok(path) => path,
Err(e) => {
log::error!("Failed to resolve game.db resource: {e}");
panic!("game.db resource is mandatory - cannot continue");
}
};
let game_db_path =
match app_handle_clone
.path()
.resolve("game.db", tauri::path::BaseDirectory::Resource)
{
Ok(path) => path,
Err(e) => {
log::error!("Failed to resolve game.db resource: {e}");
panic!("game.db resource is mandatory - cannot continue");
}
};
let eti_games = match get_games(&game_db_path).await {
Ok(games) => {