mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-19 23:20:57 +00:00
fixed custom user
This commit is contained in:
@@ -78,7 +78,11 @@ void Launcher::QueryRegistry() {
|
|||||||
RegCloseKey(BeamNG);
|
RegCloseKey(BeamNG);
|
||||||
if(BeamUserPath.empty() && !BeamVersion.empty()) {
|
if(BeamUserPath.empty() && !BeamVersion.empty()) {
|
||||||
BeamUserPath = GetLocalAppdata();
|
BeamUserPath = GetLocalAppdata();
|
||||||
|
} else if(!BeamUserPath.empty()) {
|
||||||
|
VersionParser GameVer(BeamVersion);
|
||||||
|
BeamUserPath += std::to_string(GameVer.data[0]) + '.' + std::to_string(GameVer.data[1]) + '\\';
|
||||||
}
|
}
|
||||||
|
LOG(INFO) << BeamUserPath;
|
||||||
if(!BeamRoot.empty() && !BeamVersion.empty() && !BeamUserPath.empty())return;
|
if(!BeamRoot.empty() && !BeamVersion.empty() && !BeamUserPath.empty())return;
|
||||||
}
|
}
|
||||||
LOG(FATAL) << "Please launch the game at least once, failed to read registry key Software\\BeamNG\\BeamNG.drive";
|
LOG(FATAL) << "Please launch the game at least once, failed to read registry key Software\\BeamNG\\BeamNG.drive";
|
||||||
|
|||||||
Reference in New Issue
Block a user