Fix resource path
This commit is contained in:
parent
223df31478
commit
cbe437eda8
1 changed files with 1 additions and 6 deletions
|
@ -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())?;
|
||||||
|
|
Loading…
Reference in a new issue