rust/hedgewars-server/src/server/io.rs
changeset 15796 2939d8599418
parent 15532 f1205f33bf5b
child 15797 655d0e0d612a
--- a/rust/hedgewars-server/src/server/io.rs	Sat Jun 19 17:48:10 2021 +0300
+++ b/rust/hedgewars-server/src/server/io.rs	Sun Jun 20 01:45:18 2021 +0300
@@ -84,8 +84,9 @@
                                         &filename
                                     }
                                 );
-                                match load_file(&filename) {
-                                    Ok(contents) => Some(unimplemented!()),
+
+                                match crate::core::types::Replay::load(&filename) {
+                                    Ok(replay) => Some(replay),
                                     Err(e) => {
                                         warn!(
                                             "Error while writing the room config file \"{}\": {}",