fix: Create resServer and logs if it doesnt exist and update readme (#1686)

* create resServer if not exist

* Update README.md

* Update README.md
This commit is contained in:
David Markowitz
2024-12-17 19:06:07 -08:00
committed by GitHub
parent 15dc5feeb5
commit fced6d753a
3 changed files with 8 additions and 6 deletions

View File

@@ -126,6 +126,7 @@ int main(int argc, char** argv) {
MigrationRunner::RunMigrations();
const auto resServerPath = BinaryPathFinder::GetBinaryDir() / "resServer";
std::filesystem::create_directories(resServerPath);
const bool cdServerExists = std::filesystem::exists(resServerPath / "CDServer.sqlite");
const bool oldCDServerExists = std::filesystem::exists(Game::assetManager->GetResPath() / "CDServer.sqlite");
const bool fdbExists = std::filesystem::exists(Game::assetManager->GetResPath() / "cdclient.fdb");