fixed typos

main
IMXNOOBX 1 year ago
parent 81c700c73d
commit 31b22cd0a9

@ -13,12 +13,11 @@ int main()
SetConsoleTitle("Steam Rollback"); SetConsoleTitle("Steam Rollback");
HKEY hKey; HKEY hKey;
WCHAR steam_path_w[256]; // Adjust the size according to your needs WCHAR steam_path_w[256];
DWORD steam_path_s = sizeof(steam_path_w); DWORD steam_path_s = sizeof(steam_path_w);
bool should_rollback = true; bool should_rollback = true;
// Get steam path and check version // Get steam path and check version
LONG openRes = RegOpenKeyExW(HKEY_CURRENT_USER, L"Software\\Valve\\Steam", 0, KEY_ALL_ACCESS, &hKey); LONG openRes = RegOpenKeyExW(HKEY_CURRENT_USER, L"Software\\Valve\\Steam", 0, KEY_ALL_ACCESS, &hKey);
if (openRes != ERROR_SUCCESS) { if (openRes != ERROR_SUCCESS) {
debug::log::error("Could not open the Steam registry key."); debug::log::error("Could not open the Steam registry key.");
@ -27,8 +26,8 @@ int main()
debug::log::success("Opened the Steam registry key."); debug::log::success("Opened the Steam registry key.");
LONG getName = RegQueryValueExW(hKey, L"SteamPath", 0, NULL, (LPBYTE)steam_path_w, &steam_path_s); LONG getPath = RegQueryValueExW(hKey, L"SteamPath", 0, NULL, (LPBYTE)steam_path_w, &steam_path_s);
if (getName != ERROR_SUCCESS) { if (getPath != ERROR_SUCCESS) {
debug::log::error("Could not read the SteamPath."); debug::log::error("Could not read the SteamPath.");
return 0; return 0;
} }
@ -61,7 +60,6 @@ int main()
} }
// Extract and unzip files to restore old steam // Extract and unzip files to restore old steam
if (should_rollback) { if (should_rollback) {
std::string absolute_path = steam_path + "/" + "old_steam.zip"; std::string absolute_path = steam_path + "/" + "old_steam.zip";

Loading…
Cancel
Save