pub const URL : &str = "http://localhost:8000";
+const CONFIG : &str = "server-config.toml";
+
pub trait AlwaysContext<T,E> {
fn always_context(self, msg: &'static str) -> anyhow::Result<T>;
fn just_warn(self, msg: &'static str) -> Option<T>;
"game::updates" = 'trace'
"##);
- const CONFIG : &str = "server-config.toml";
-
fs::write(CONFIG, &config)
.context(CONFIG).context("create server config")?;
.context(server_exe).context("game server")?;
}
+#[throws(AE)]
+pub fn prepare_game(_ds: &DirSubst) {
+}
+
#[throws(AE)]
fn prepare_geckodriver(cln: &cleanup_notify::Handle) {
const EXPECTED : &str = "Listening on 127.0.0.1:4444";
prepare_xserver(&cln, &ds).always_context("setup X server")?;
prepare_gameserver(&cln, &ds).always_context("setup game server")?;
+ prepare_game(&ds).context("setup game")?;
let final_hook = FinalInfoCollection;