Implement a server res directory for server required client files (#891)

This commit is contained in:
David Markowitz
2022-12-21 22:34:11 -08:00
committed by GitHub
parent bd7f532a28
commit fd9757d121
5 changed files with 176 additions and 59 deletions

View File

@@ -154,7 +154,7 @@ int main(int argc, char** argv) {
// Connect to CDClient
try {
CDClientDatabase::Connect((Game::assetManager->GetResPath() / "CDServer.sqlite").string());
CDClientDatabase::Connect((BinaryPathFinder::GetBinaryDir() / "resServer" / "CDServer.sqlite").string());
} catch (CppSQLite3Exception& e) {
Game::logger->Log("WorldServer", "Unable to connect to CDServer SQLite Database");
Game::logger->Log("WorldServer", "Error: %s", e.errorMessage());