From cbe437eda8fa80ff83b82e316d28836f08ff075b Mon Sep 17 00:00:00 2001 From: hodasemi Date: Sun, 25 Aug 2024 12:11:02 +0200 Subject: [PATCH] Fix resource path --- gavania-core/src/game/game.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gavania-core/src/game/game.rs b/gavania-core/src/game/game.rs index 72d372e..388e7d7 100644 --- a/gavania-core/src/game/game.rs +++ b/gavania-core/src/game/game.rs @@ -228,12 +228,7 @@ impl Game { } let game = { - engine_create_info.gui_info.resource_directory = { - let mut path = AssetPath::from(settings.data_path.as_str()); - path.assume_prefix_free(); - - path - }; + engine_create_info.gui_info.resource_directory = settings.data_path.as_str().into(); engine_create_info.resource_base_path = settings.data_path.clone(); let engine = Engine::new(engine_create_info.clone())?;