mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01:00
Possible fix to memory pokes
This commit is contained in:
parent
175c731cea
commit
348f4fa177
@ -1551,14 +1551,19 @@ void AchievementManager::MemoryPoker(u32 address, u8* buffer, u32 num_bytes, rc_
|
||||
Core::QueueHostJob([address, buffer, num_bytes, client](Core::System& system) {
|
||||
MemoryPoker(address, buffer, num_bytes, client);
|
||||
});
|
||||
return;
|
||||
}
|
||||
Core::CPUThreadGuard threadguard(system);
|
||||
auto& instance = AchievementManager::GetInstance();
|
||||
std::lock_guard lg{instance.m_memory_lock};
|
||||
for (u32 num_write = 0; num_write < num_bytes; num_write++)
|
||||
{
|
||||
system.GetMMU().HostTryWriteU8(threadguard, buffer[num_write], address + num_write,
|
||||
PowerPC::RequestedAddressSpace::Physical);
|
||||
instance.m_cloned_memory[address + num_write] = buffer[num_write];
|
||||
}
|
||||
}
|
||||
|
||||
void AchievementManager::GameTitleEstimateHandler(char* buffer, u32 buffer_size,
|
||||
rc_client_t* client)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user