Removed use of basic_ifstream<uint8_t> to fix linux

This commit is contained in:
Mr-Wiseguy 2023-10-24 11:17:23 -04:00
parent cdd397fe8f
commit 878b25a1f5
1 changed files with 3 additions and 3 deletions

View File

@ -124,10 +124,10 @@ recomp_context context{};
EXPORT extern "C" void init() {
{
std::basic_ifstream<uint8_t> 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<uint8_t[]> iobuf = std::make_unique<uint8_t[]>(iobuf_size);
std::unique_ptr<char> iobuf = std::make_unique<char>(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<uint8_t[]>(rom_size);
rom_file.read(rom.get(), rom_size);
rom_file.read(reinterpret_cast<char*>(rom.get()), rom_size);
// TODO remove this
// Modify the name in the rom header so RT64 doesn't find it