Browse Source

fix: use stream existence to check whether to use defaults

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

7
main.cpp

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

Loading…
Cancel
Save