mirror of
https://github.com/Theaninova/mhlib.git
synced 2026-01-21 01:12:58 +00:00
improved lwo loading
This commit is contained in:
@@ -27,7 +27,7 @@ pub fn pro_to_gd(pro: PowerRenderObject) -> Gd<PackedScene> {
|
||||
let pr_tex = &pro.textures[m.texture_index];
|
||||
|
||||
let mut image_file =
|
||||
File::open(format!("E:\\Games\\Moorhuhn Kart\\data\\{}", pr_tex.name)).unwrap();
|
||||
File::open(format!("../games/Moorhuhn Kart/data/{}", pr_tex.name)).unwrap();
|
||||
let mut image = Image::new();
|
||||
let mut buffer = vec![];
|
||||
image_file.read_to_end(&mut buffer).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user