From 878b25a1f554c297fe198da59729ee500b83a082 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Tue, 24 Oct 2023 11:17:23 -0400 Subject: [PATCH] Removed use of basic_ifstream to fix linux --- src/recomp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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