mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-04 06:46:06 +00:00
final hotfix
This commit is contained in:
@@ -28,13 +28,12 @@ std::string GetGamePath(){
|
||||
|
||||
if(Path.empty()){
|
||||
sk = R"(SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders)";
|
||||
|
||||
openRes = RegOpenKeyEx(HKEY_CURRENT_USER, sk, 0, KEY_ALL_ACCESS, &hKey);
|
||||
if (openRes != ERROR_SUCCESS){
|
||||
fatal("Cannot get Documents directory!");
|
||||
}
|
||||
Path = QueryKey(hKey,5);
|
||||
Path += "\\";
|
||||
Path += "\\BeamNG.drive\\";
|
||||
return Path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user