Use std::filesystem::operator/ instead of string concat

This commit is contained in:
Tixx 2025-04-26 19:45:10 +02:00
parent ca93effb7d
commit 6244fdafc6
No known key found for this signature in database
GPG Key ID: EC6E7A2BAABF0B8C

View File

@ -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;