diff --git a/src/recomp.cpp b/src/recomp.cpp index dcec2bf..b3c1a5b 100644 --- a/src/recomp.cpp +++ b/src/recomp.cpp @@ -124,10 +124,10 @@ recomp_context context{}; EXPORT extern "C" void init() { { - std::basic_ifstream rom_file{ get_rom_name(), std::ios::binary }; + std::ifstream rom_file{ get_rom_name(), std::ios::binary }; size_t iobuf_size = 0x100000; - std::unique_ptr iobuf = std::make_unique(iobuf_size); + std::unique_ptr iobuf = std::make_unique(iobuf_size); rom_file.rdbuf()->pubsetbuf(iobuf.get(), iobuf_size); if (!rom_file) { @@ -141,7 +141,7 @@ EXPORT extern "C" void init() { rom = std::make_unique(rom_size); - rom_file.read(rom.get(), rom_size); + rom_file.read(reinterpret_cast(rom.get()), rom_size); // TODO remove this // Modify the name in the rom header so RT64 doesn't find it