final hotfix

This commit is contained in:
Anonymous275
2020-12-27 06:34:11 +02:00
parent 2a03448b3f
commit eaa8796c02
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -28,13 +28,12 @@ std::string GetGamePath(){
if(Path.empty()){ if(Path.empty()){
sk = R"(SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders)"; sk = R"(SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders)";
openRes = RegOpenKeyEx(HKEY_CURRENT_USER, sk, 0, KEY_ALL_ACCESS, &hKey); openRes = RegOpenKeyEx(HKEY_CURRENT_USER, sk, 0, KEY_ALL_ACCESS, &hKey);
if (openRes != ERROR_SUCCESS){ if (openRes != ERROR_SUCCESS){
fatal("Cannot get Documents directory!"); fatal("Cannot get Documents directory!");
} }
Path = QueryKey(hKey,5); Path = QueryKey(hKey,5);
Path += "\\"; Path += "\\BeamNG.drive\\";
return Path; return Path;
} }
+1 -1
View File
@@ -27,7 +27,7 @@ std::string GetVer(){
return "1.80"; return "1.80";
} }
std::string GetPatch(){ std::string GetPatch(){
return ".6"; return ".7";
} }
void ReLaunch(int argc,char*args[]){ void ReLaunch(int argc,char*args[]){
std::string Arg; std::string Arg;