Fixed null terminator on rom names

This commit is contained in:
KiritoDv
2025-01-04 21:03:28 -06:00
parent 89215ec589
commit 643b8e4462
+1
View File
@@ -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();