Browse Source

fix: use ifstream instead of freopen

master
Abheek Dhawan 2 years ago
parent
commit
b14648e28c
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 4
      main.cpp

4
main.cpp

@ -60,10 +60,10 @@ uint64_t find_patch_address(const std::vector<uint8_t> &search_buffer) {
} }
int main() { int main() {
freopen("modlimitfix.conf", "r", stdin); ifstream ifs("modlimitfix.conf");
uint32_t mod_limit; uint32_t mod_limit;
bool using_conf = false; bool using_conf = false;
cin >> mod_limit; ifs >> mod_limit;
if (mod_limit) { if (mod_limit) {
patched_limit = mod_limit; patched_limit = mod_limit;
using_conf = true; using_conf = true;

Loading…
Cancel
Save