RSX-Debugger: Implement backwards scrolling

* Use 2 points of known true RSX code roots and follow them in order to peek at the current section of valid RSX code:
These roots are: current RSX instruction address and the last targeted address by a branch instruction.
This commit is contained in:
Eladash 2022-03-25 18:17:25 +03:00 committed by Ivan
parent 26d8120168
commit 1d51f3af0c
10 changed files with 108 additions and 34 deletions

View file

@ -1146,7 +1146,7 @@ error_code cellGameGetParamString(s32 id, vm::ptr<char> buf, u32 bufsize)
return CELL_GAME_ERROR_NOTSUPPORTED;
}
const auto value = psf::get_string(perm.sfo, std::string(key.name));
const auto value = psf::get_string(perm.sfo, key.name);
if (value.empty() && !perm.sfo.count(std::string(key.name)))
{
@ -1189,7 +1189,7 @@ error_code cellGameSetParamString(s32 id, vm::cptr<char> buf)
return CELL_GAME_ERROR_NOTSUPPORTED;
}
psf::assign(perm.sfo, std::string(key.name), psf::string(key.max_size, buf.get_ptr()));
psf::assign(perm.sfo, key.name, psf::string(key.max_size, buf.get_ptr()));
return CELL_OK;
}