From dfffe1612e8b5a4e46250ec92d0e34fffaa17c68 Mon Sep 17 00:00:00 2001 From: xeon Date: Fri, 29 Mar 2024 21:17:17 +0300 Subject: [PATCH] Fix globals.json loading when using AppData directory --- gameserver/src/game/global_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameserver/src/game/global_config.rs b/gameserver/src/game/global_config.rs index e13221c..3ed8068 100644 --- a/gameserver/src/game/global_config.rs +++ b/gameserver/src/game/global_config.rs @@ -22,7 +22,7 @@ lazy_static! { std::fs::write(&env, DEFAULT_GLOBALS).unwrap(); } - DEFAULT_GLOBALS.to_string() + std::fs::read_to_string(&env).unwrap() }; from_str(&data).unwrap()