mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
Merge pull request #12450 from lioncash/cheats
CheatSearch: Get rid of global system accessors
This commit is contained in:
commit
186b2f4e92
1 changed files with 2 additions and 4 deletions
|
@ -222,8 +222,7 @@ Cheats::NewSearch(const Core::CPUThreadGuard& guard,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& system = Core::System::GetInstance();
|
const auto& ppc_state = guard.GetSystem().GetPPCState();
|
||||||
auto& ppc_state = system.GetPPCState();
|
|
||||||
if (address_space == PowerPC::RequestedAddressSpace::Virtual && !ppc_state.msr.DR)
|
if (address_space == PowerPC::RequestedAddressSpace::Virtual && !ppc_state.msr.DR)
|
||||||
{
|
{
|
||||||
error_code = Cheats::SearchErrorCode::VirtualAddressesCurrentlyNotAccessible;
|
error_code = Cheats::SearchErrorCode::VirtualAddressesCurrentlyNotAccessible;
|
||||||
|
@ -288,8 +287,7 @@ Cheats::NextSearch(const Core::CPUThreadGuard& guard,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& system = Core::System::GetInstance();
|
const auto& ppc_state = guard.GetSystem().GetPPCState();
|
||||||
auto& ppc_state = system.GetPPCState();
|
|
||||||
if (address_space == PowerPC::RequestedAddressSpace::Virtual && !ppc_state.msr.DR)
|
if (address_space == PowerPC::RequestedAddressSpace::Virtual && !ppc_state.msr.DR)
|
||||||
{
|
{
|
||||||
error_code = Cheats::SearchErrorCode::VirtualAddressesCurrentlyNotAccessible;
|
error_code = Cheats::SearchErrorCode::VirtualAddressesCurrentlyNotAccessible;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue