mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +00:00
Also fix 0x8 type /same as 0x4, just for 8/16 bit
This commit is contained in:
parent
2e1681cba6
commit
082cc8eff9
@ -554,10 +554,10 @@ void CWCheatEngine::Run() {
|
||||
int dataAdd = code[1];
|
||||
|
||||
bool is8Bit = (data >> 16) == 0x0000;
|
||||
int maxAddr = (arg >> 16) & 0xFFFF;
|
||||
int count = (arg >> 16) & 0xFFFF;
|
||||
int stepAddr = (arg & 0xFFFF) * (is8Bit ? 1 : 2);
|
||||
InvalidateICache(addr, maxAddr - addr);
|
||||
for (int a = 0; a < maxAddr; a++) {
|
||||
InvalidateICache(addr, count * stepAddr);
|
||||
for (int a = 0; a < count; a++) {
|
||||
if (Memory::IsValidAddress(addr)) {
|
||||
if (is8Bit) {
|
||||
Memory::Write_U8((u8) (data & 0xFF), addr);
|
||||
|
Loading…
Reference in New Issue
Block a user