Allow MinGW build to work out-of-box on Windows

This commit is contained in:
Aidan Fischer
2023-10-23 15:31:18 -04:00
parent 429ce205a8
commit 5a711e9e00
2 changed files with 5 additions and 2 deletions

View File

@@ -3,8 +3,8 @@
using namespace std;
RomProcessor::RomProcessor(const char *in_path, const char *out_path) {
rom_file.open(in_path);
out_file.open(out_path, fstream::in | fstream::out | fstream::trunc);
rom_file.open(in_path, fstream::in | fstream::binary);
out_file.open(out_path, fstream::in | fstream::out | fstream::trunc | fstream::binary);
out_file << rom_file.rdbuf(); out_file.flush(); // copy over file