From 643b8e4462f7cbd11e1fa6280b024a6fd0ab2f6f Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sat, 4 Jan 2025 21:03:28 -0600 Subject: [PATCH] Fixed null terminator on rom names --- src/n64/Cartridge.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/n64/Cartridge.cpp b/src/n64/Cartridge.cpp index 3580d11..e26913e 100644 --- a/src/n64/Cartridge.cpp +++ b/src/n64/Cartridge.cpp @@ -10,6 +10,7 @@ void N64::Cartridge::Initialize() { this->gRomCRC = BSWAP32(reader.ReadUInt32()); reader.Seek(0x20, LUS::SeekOffsetType::Start); this->gGameTitle = std::string(reader.ReadCString()); + this->gGameTitle.pop_back(); // Remove null terminator reader.Seek(0x3E, LUS::SeekOffsetType::Start); uint8_t country = reader.ReadUByte(); this->gVersion = reader.ReadUByte();