From 6244fdafc69a4e5dd51a0dfb36b55086b04a5061 Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Sat, 26 Apr 2025 19:45:10 +0200 Subject: [PATCH] Use std::filesystem::operator/ instead of string concat --- src/GameStart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GameStart.cpp b/src/GameStart.cpp index 0bb8b7f..8174ccb 100644 --- a/src/GameStart.cpp +++ b/src/GameStart.cpp @@ -41,7 +41,7 @@ std::string GetGamePath() { warn("Invalid or non-existent path (" + std::string(options.user_path) + ") specified using --user-path, skipping"); } - if (std::string startupIniPath = GetGameDir() + "\\startup.ini"; std::filesystem::exists(startupIniPath)) { + if (const auto startupIniPath = std::filesystem::path(GetGameDir()) / "startup.ini"; exists(startupIniPath)) { std::ifstream startupIni(startupIniPath); std::string line;