diff --git a/src/client/component/dedicated.cpp b/src/client/component/dedicated.cpp index 111ca62b..bc314f4a 100644 --- a/src/client/component/dedicated.cpp +++ b/src/client/component/dedicated.cpp @@ -8,6 +8,7 @@ #include "command.hpp" #include "console/console.hpp" #include "scheduler.hpp" +#include "filesystem.hpp" #include @@ -121,7 +122,7 @@ namespace dedicated nlohmann::json get_snd_alias_length_data(const char* mapname, const std::string& game_mode = "") { const auto path = "sounddata/"s + game_mode + "/"s + mapname + ".json"s; - const auto buffer = utils::io::read_file(path); + const auto buffer = filesystem::read_file(path); if (!buffer.empty()) { try @@ -153,6 +154,7 @@ namespace dedicated } else { + //console::error("[SND]: failed to find sound length soundalias \"%s\"\n", alias); return 0; } } diff --git a/src/client/main.cpp b/src/client/main.cpp index 02d65ee2..d070dcee 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -107,7 +107,9 @@ void limit_parallel_dll_loading() int main() { - ShowWindow(GetConsoleWindow(), SW_HIDE); + if (!game::environment::is_dedi()) + ShowWindow(GetConsoleWindow(), SW_HIDE); + console::init(); FARPROC entry_point;