PS2 PS4 LUA: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
(Created page with "<br>'''Delay GIF''' <pre> apiRequest(0.1) local eeObj = getEEObject() local emuObj = getEmuObject() eeObj.AddHook(0x0033A540,0xAC430000, function() eeObj.SchedulerDelayEvent...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:


eeObj.AddHook(0x0033A540,0xAC430000, function() eeObj.SchedulerDelayEvent("gif.dma", 0x60500) end)
eeObj.AddHook(0x0033A540,0xAC430000, function() eeObj.SchedulerDelayEvent("gif.dma", 0x60500) end)
</pre>
<br>'''Patch EE memory'''
<pre>
apiRequest(0.1)
local eeObj = getEEObject()
local emuObj = getEmuObject()
local patcher = function()
eeObj.WriteMem32(0x001958A0, 0x10000086)
end
emuObj.AddVsyncHook(patcher)
</pre>
<br>'''Speedhacks'''
<pre>
apiRequest(0.1)
local eeObj = getEEObject()
local emuObj = getEmuObject()
eeObj.AddHook(0x002cc350, 0x78a30000, function()
          eeObj.AdvanceClock(21000)
          eeObj.Vu1MpgCycles(2000)
          eeObj.FastForwardClock()
end)
</pre>
</pre>

Latest revision as of 03:16, 13 August 2023


Delay GIF

apiRequest(0.1)

local eeObj = getEEObject()
local emuObj = getEmuObject()

eeObj.AddHook(0x0033A540,0xAC430000, function() eeObj.SchedulerDelayEvent("gif.dma", 0x60500) end)


Patch EE memory

apiRequest(0.1)

local eeObj = getEEObject()
local emuObj = getEmuObject()

local patcher = function()
eeObj.WriteMem32(0x001958A0, 0x10000086)
end
emuObj.AddVsyncHook(patcher)


Speedhacks

apiRequest(0.1)

local eeObj = getEEObject()
local emuObj = getEmuObject()

eeObj.AddHook(0x002cc350, 0x78a30000, function()
          eeObj.AdvanceClock(21000)
          eeObj.Vu1MpgCycles(2000)
          eeObj.FastForwardClock()
end)