Browse Source

Use std::remove instead of std::filesystem::remove which is only available in C++17

ramhash
Duke 4 months ago
parent
commit
6663118e2a
  1. 2
      src/Ramhash/src/lxrhash.cpp

2
src/Ramhash/src/lxrhash.cpp

@ -147,7 +147,7 @@ bool LXRHash::load()
if (check() != checksum) // Then check that the checksum is correct
{ //
printf("checksum mismatch l:%llx != cs:%llx\n", cs, checksum);
std::filesystem::remove("byteMap.dat"); // Remove the bad file
std::remove("byteMap.dat"); // Remove the bad file
return (false); // Return fail
} //
return true; // If so, all good, don't need to regenerate the byteMap

Loading…
Cancel
Save