compile fixes and default client_location (#809)

* support for gcc9 on ubuntu 18.04
This is needed to make filesystem work

* fix default for client location
This commit is contained in:
Aaron Kimbrell
2022-11-02 22:05:52 -05:00
committed by GitHub
parent 4a6f3e44ee
commit 353c328485
4 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ int main(int argc, char** argv) {
try {
std::string client_path = config.GetValue("client_location");
if (client_path.empty()) client_path = "./res";
Game::assetManager = new AssetManager(config.GetValue("client_location"));
Game::assetManager = new AssetManager(client_path);
} catch (std::runtime_error& ex) {
Game::logger->Log("MasterServer", "Got an error while setting up assets: %s", ex.what());