Skip to content

Commit

Permalink
cin.get() -> system("pause")
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf49406 committed Jan 13, 2025
1 parent 51177fc commit e3af9e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dota2Patcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main() {
ProcessHandle::open_process_handle(process_ID, PROCESS_ALL_ACCESS);
if (!ProcessHandle::is_valid_handle()) {
printf("[-] Failed to open process. Error: 0x%d\n", ProcessHandle::get_last_error());
std::cin.get();
system("pause");
return 0;
}

Expand All @@ -56,7 +56,7 @@ int main() {
if (!Memory::load_modules()) {
printf("[-] Failed to load modules, aborting...\n");
ProcessHandle::close_process_handle();
std::cin.get();
system("pause");
return 0;
}

Expand Down Expand Up @@ -86,7 +86,7 @@ int main() {
if (!vmt.find_all()) {
printf("[-] Scanner failed! Exiting...\n");
ProcessHandle::close_process_handle();
std::cin.get();
system("pause");
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion MD5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
288195e2cef187ee1ef132e0a1ced588
8f43f70afcf4852ed920a1acdbe48773
2 changes: 1 addition & 1 deletion Updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void Updater::check_update() {

printf("[!] Update Required!\n");
printf("[~] Press Enter to continue...\n");
std::cin.get();
system("pause");

std::wstring w_update_url = string_to_wstring(update_url);

Expand Down

0 comments on commit e3af9e1

Please sign in to comment.