Browse Source

prevent the overwrite of existing mpq files (requires C++17)

fixes #7672
pull/7680/head
pionere 1 year ago committed by Anders Jenbo
parent
commit
42477ebda6
  1. 2
      Source/mpq/mpq_writer.cpp

2
Source/mpq/mpq_writer.cpp

@ -92,7 +92,7 @@ MpqWriter::MpqWriter(const char *path)
LogVerbose("Opening {}", path);
std::string error;
bool exists = FileExists(path);
const char *mode = "wb";
const char *mode = "wbx";
if (exists) {
mode = "r+b";
if (!GetFileSize(path, &size_)) {

Loading…
Cancel
Save