mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
Use std::filesystem::operator/ instead of string concat
This commit is contained in:
parent
ca93effb7d
commit
6244fdafc6
@ -41,7 +41,7 @@ std::string GetGamePath() {
|
|||||||
warn("Invalid or non-existent path (" + std::string(options.user_path) + ") specified using --user-path, skipping");
|
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::ifstream startupIni(startupIniPath);
|
||||||
std::string line;
|
std::string line;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user