mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-25 14:16:58 +01:00
Removed use of basic_ifstream<uint8_t> to fix linux
This commit is contained in:
parent
cdd397fe8f
commit
878b25a1f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user