summaryrefslogtreecommitdiffstats
path: root/src/core/memory/dmnt_cheat_vm.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-16core: Make variable shadowing a compile-time errorLioncash1-1/+2
Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
2020-08-03dmnt_cheat_vm: Make use of designated initializersLioncash1-105/+121
Allows for more compact code.
2020-07-15clang-formatVolcaEM1-1/+2
2020-07-15dmnt_cheat_vm: Implement opcode 0xC3 (ReadWriteStaticRegister)VolcaEM1-0/+28
This was based on Atmosphére's DMNT Cheat VM: - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp From Atmosphére's documentation: "Code type 0xC3 reads or writes a static register with a given register" There are now only two remaining opcodes to implement (PauseProcess and BreakProcess) This is untested because I don't have any experience in testing cheats on yuzu
2020-04-17core: memory: Move to Core::Memory namespace.bunnei1-2/+2
- helpful to disambiguate Kernel::Memory namespace.
2020-04-16CMakeLists: Specify -Wextra on linux buildsLioncash1-2/+3
Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
2019-10-18dmnt_cheat_vm: Correct register Restore and ClearRegs behaviorLioncash1-2/+2
Previously these were performing the same behavior as the Save and ClearSaved opcode types.
2019-09-22dmnt_cheat_vm: Make Cheat VM compliant to code styleZach Hilman1-745/+751
2019-09-22memory: Port Atmosphere's DmntCheatVmZach Hilman1-0/+1206
This was done because the current VM contained many inaccuracies and this also allows cheats to have identical behavior between hardware and yuzu.