Merge branch 'dev' into jit

# Conflicts:
#	src/backend/core/registers/Registers.hpp
This commit is contained in:
SimoneN64
2024-08-19 23:39:45 +02:00
55 changed files with 2100 additions and 1857 deletions

View File

@@ -12,7 +12,7 @@ void Core::Stop() {
cpu->Reset();
}
bool Core::LoadTAS(const fs::path &path) {
bool Core::LoadTAS(const fs::path &path) const {
return cpu->GetMem().mmio.si.pif.movie.Load(path);
}
@@ -31,6 +31,9 @@ void Core::LoadROM(const std::string& rom_) {
cpu->GetMem().LoadROM(isArchive, rom);
GameDB::match(cpu->GetMem());
if(cpu->GetMem().rom.gameNameDB.empty()) {
cpu->GetMem().rom.gameNameDB = fs::path(rom).stem();
}
cpu->GetMem().mmio.vi.isPal = cpu->GetMem().IsROMPAL();
cpu->GetMem().mmio.si.pif.InitDevices(cpu->GetMem().saveType);
cpu->GetMem().mmio.si.pif.mempakPath = rom;