Fix resource path

This commit is contained in:
hodasemi 2024-08-25 12:11:02 +02:00
parent 223df31478
commit cbe437eda8

View file

@ -228,12 +228,7 @@ impl Game {
} }
let game = { let game = {
engine_create_info.gui_info.resource_directory = { engine_create_info.gui_info.resource_directory = settings.data_path.as_str().into();
let mut path = AssetPath::from(settings.data_path.as_str());
path.assume_prefix_free();
path
};
engine_create_info.resource_base_path = settings.data_path.clone(); engine_create_info.resource_base_path = settings.data_path.clone();
let engine = Engine::new(engine_create_info.clone())?; let engine = Engine::new(engine_create_info.clone())?;