improved lwo loading

This commit is contained in:
2023-05-28 19:30:32 +02:00
parent 5514b9eac9
commit 17e33d4881
8 changed files with 220 additions and 120 deletions

View File

@@ -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();