Skip to content

Commit

Permalink
create resServer if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Dec 18, 2024
1 parent a60865c commit a78e524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dMasterServer/MasterServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion dServer/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void Server::SetupLogger(const std::string_view serviceName) {

const auto logsDir = BinaryPathFinder::GetBinaryDir() / "logs";

if (!std::filesystem::exists(logsDir)) std::filesystem::create_directory(logsDir);
if (!std::filesystem::exists(logsDir)) std::filesystem::create_directories(logsDir);

std::string logPath = (logsDir / serviceName).string() + "_" + std::to_string(time(nullptr)) + ".log";
bool logToConsole = false;
Expand Down

0 comments on commit a78e524

Please sign in to comment.