asd
This commit is contained in:
@@ -280,6 +280,8 @@ async fn get_game_thumbnail(
|
||||
tauri::path::BaseDirectory::Resource,
|
||||
)?;
|
||||
|
||||
dbg!(&resource_path);
|
||||
|
||||
let image_data = std::fs::read(&resource_path)?;
|
||||
let base64_data = base64::engine::general_purpose::STANDARD.encode(&image_data);
|
||||
Ok(format!("data:image/jpeg;base64,{base64_data}"))
|
||||
@@ -854,7 +856,7 @@ pub fn run() {
|
||||
.path()
|
||||
.resolve("game.db", tauri::path::BaseDirectory::Resource)
|
||||
{
|
||||
Ok(path) => path,
|
||||
Ok(path) => { dbg!(&path); path },
|
||||
Err(e) => {
|
||||
log::error!("Failed to resolve game.db resource: {e}");
|
||||
panic!("game.db resource is mandatory - cannot continue");
|
||||
|
||||
Reference in New Issue
Block a user