LuckyTurtleDev/mission2teegarden-b

panics after start

Closed this issue · 0 comments

Game does panic if it does start from a different file working directory as workspace.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: FileError { kind: IOError(Os { code: 2, kind: NotFound, message: "No such file or directory" }), path: "assets/img/Menu/menu_background.png" }', pc/src/menu.rs:93:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Probably solution:
Graphic should not be loaded from file, instead it should be part of the Textures struct.