Cleanup, fix RomFS reads (todo: revisit), add CFG::GetConfigInfoBlk2

This commit is contained in:
wheremyfoodat 2022-10-11 22:04:26 +03:00
parent 1ddba7737f
commit 156a89ba75
7 changed files with 35 additions and 6 deletions

View file

@ -30,7 +30,7 @@ public:
}
u64 MemoryRead64(u32 vaddr) override {
return u64(MemoryRead32(vaddr)) | u64(MemoryRead32(vaddr + 4)) << 32;
return mem.read64(vaddr);
}
void MemoryWrite8(u32 vaddr, u8 value) override {
@ -162,6 +162,7 @@ public:
void runFrame() {
env.ticksLeft = 268111856 / 60;
const auto exitReason = jit->Run();
if (static_cast<u32>(exitReason) != 0) [[unlikely]] {
Helpers::panic("Exit reason: %d\nPC: %08X", static_cast<u32>(exitReason), getReg(15));