smaller fixes

This commit is contained in:
Simone
2024-01-18 13:32:52 +01:00
parent 25d1e4c51f
commit 25a6a9f23d
5 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
#include <Core.hpp>
#include <Scheduler.hpp>
#include <ParallelRDPWrapper.hpp>
namespace n64 {
u32 extraCycles = 0;

View File

@@ -153,6 +153,8 @@ void Mem::LoadROM(bool isArchive, const std::string& filename) {
memcpy(&rom.header, buf, sizeof(ROMHeader));
memcpy(rom.gameNameCart, rom.header.imageName, sizeof(rom.header.imageName));
free(buf);
rom.header.clockRate = be32toh(rom.header.clockRate);
rom.header.programCounter = be32toh(rom.header.programCounter);
rom.header.release = be32toh(rom.header.release);