Skip to content

Commit

Permalink
Fixed null terminator on rom names
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Jan 5, 2025
1 parent 89215ec commit 643b8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/n64/Cartridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 643b8e4

Please sign in to comment.