mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fixed null terminator on rom names
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user