summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-01-04 21:03:28 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-01-04 21:03:28 -0600
commit643b8e4462f7cbd11e1fa6280b024a6fd0ab2f6f (patch)
treedc49d997a55eca02a9e9a67e9a0056a32169e256 /src
parent89215ec589ab34ee92b5ee426e58d55738a236e4 (diff)
Fixed null terminator on rom names
Diffstat (limited to 'src')
-rw-r--r--src/n64/Cartridge.cpp1
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();