windows paths
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user