mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 11:15:20 +02:00
initial tests
This commit is contained in:
@@ -61,9 +61,13 @@ struct AutoDisabledReplacements {
|
||||
// Important: Only use keepReplacements when reading, not writing.
|
||||
static AutoDisabledReplacements LockMemoryAndCPU(uint32_t addr, bool keepReplacements) {
|
||||
AutoDisabledReplacements result;
|
||||
CoreState state = coreState;
|
||||
if (Core_IsStepping()) {
|
||||
result.wasStepping = true;
|
||||
} else {
|
||||
while (state != CoreState::CORE_RUNNING_CPU) {
|
||||
state = coreState;
|
||||
}
|
||||
Core_Break(BreakReason::MemoryAccess, addr);
|
||||
Core_WaitInactive();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user