--- a/rust/lib-hedgewars-engine/src/world.rs Sat Nov 12 15:40:20 2022 +0100
+++ b/rust/lib-hedgewars-engine/src/world.rs Sat Nov 12 21:12:14 2022 +0100
@@ -39,7 +39,7 @@
}
impl World {
- pub fn new() -> Self {
+ pub fn new(data_path: &Path) -> Self {
Self {
random_numbers_gen: LaggedFibonacciPRNG::new(&[]),
feature_size: 5,
@@ -49,7 +49,7 @@
gear_renderer: None,
camera: Camera::new(),
gear_entries: vec![],
- data_path: PathBuf::from("../../share/hedgewars/Data"),
+ data_path: data_path.to_owned(),
}
}