diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2025-01-04 21:03:28 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2025-01-04 21:03:28 -0600 |
| commit | 643b8e4462f7cbd11e1fa6280b024a6fd0ab2f6f (patch) | |
| tree | dc49d997a55eca02a9e9a67e9a0056a32169e256 /src/n64 | |
| parent | 89215ec589ab34ee92b5ee426e58d55738a236e4 (diff) | |
Fixed null terminator on rom names
Diffstat (limited to 'src/n64')
| -rw-r--r-- | src/n64/Cartridge.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |
