Editing PS2 Emulation
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 970: | Line 970: | ||
|- | |- | ||
|} | |} | ||
===Porting a pnach=== | |||
This is an example of a 4 byte cheat that was ported into a LUA | |||
<br>'''PNACH''' | |||
<pre> | |||
patch=1,EE,20320D00,word,00000000 | |||
patch=1,EE,2C34C9B3,word,3C023F2B | |||
</pre> | |||
<br>'''Ps4 LUA''' | |||
<pre> | |||
local gpr = require("ee-gpr-alias") | |||
apiRequest(0.1) | |||
local eeObj = getEEObject() | |||
local emuObj = getEmuObject() | |||
local patcher = function() | |||
eeObj.WriteMem32(0x20320D00,0x00000000) -- Just Replace These with your address being on the left and your value being on the right | |||
eeObj.WriteMem32(0x2C34C9B3,0x3C023F2B) | |||
end | |||
emuObj.AddVsyncHook(patcher) | |||
</pre> | |||
=== XXXX-YYYYY_config.lua === | === XXXX-YYYYY_config.lua === |