User:Scalerize: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{|  class="wikitable"
apiRequest(0.1)
! align="center" style="background:#f0f0f0;"| '''Fatal Fury Eboot'''
 
! align="center" style="background:#f0f0f0;"| ''''''
local eeObj = getEEObject()
! align="center" style="background:#f0f0f0;"| ''''''
local emuObj = getEmuObject()
! align="center" style="background:#f0f0f0;"| ''''''
local Pointer = 0
|- align="center "
local Previous = 0
|  ||  ||  ||
eeObj.WriteMem32(0x0011F38C, 0x0803FFC8)
|- align="center"
eeObj.WriteMem32(0x000FFF20, 0x3C1B000F)
|  || Offset || Value type || Normal value (DEC)
eeObj.WriteMem32(0x000FFF24, 0x377BFF00)
|- align="center"
eeObj.WriteMem32(0x000FFF28, 0xAF770000)
| EE Clock that the scalar multiplies/divides || 50FE1 || 4 Bytes || 294912000
eeObj.WriteMem32(0x000FFF2C, 0xAF760004)
|- align="center"
eeObj.WriteMem32(0x000FFF30, 0xAF750008)
| EE Cycle Scalar: || 50FE5 || 4 Bytes || 256
eeObj.WriteMem32(0x000FFF34, 0xAF74000C)
|- align="center"
eeObj.WriteMem32(0x000FFF38, 0x3C1701FF)
| VU1 Jit-sync || 510DE || 1 Byte || 82
eeObj.WriteMem32(0x000FFF3C, 0x36F7FCF0)
|- align="center"
eeObj.WriteMem32(0x000FFF40, 0x24167000)
| Something || 5105B || 4 Bytes || 10000
eeObj.WriteMem32(0x000FFF44, 0x26D618B4)
|- align="center"
eeObj.WriteMem32(0x000FFF48, 0x8EF70000)
| Something || 510C7 & 510D1 || 4 Bytes || 1084227584
eeObj.WriteMem32(0x000FFF4C, 0x02D7B821)
|- align="center"
eeObj.WriteMem32(0x000FFF50, 0x3C157120)
| Something bottom || 51163 || 4 Bytes || -8375837
eeObj.WriteMem32(0x000FFF54, 0x36B5CDA8)
|- align="center"
eeObj.WriteMem32(0x000FFF5C, 0x12950004)
| GIF? || 51113 || 4 Bytes || 2635467
eeObj.WriteMem32(0x000FFF58, 0x8EF40000)
|- align="center"
eeObj.WriteMem32(0x000FFF64, 0x26F70004)
| VIF1? || 51109 || 4 Bytes || 2369227
eeObj.WriteMem32(0x000FFF68, 0x1000FFFB)
|- align="center"
eeObj.WriteMem32(0x000FFF70, 0xAF770010)
| ?? || 5111D || 4 Bytes || 8402
eeObj.WriteMem32(0x000FFF7C, 0x8F74000C)
|- align="center"
eeObj.WriteMem32(0x000FFF80, 0x8F760004)
| Something that affects fmvs || 510F5 || 4 Bytes || 32000
eeObj.WriteMem32(0x000FFF84, 0x8F750008)
|- align="center"
eeObj.WriteMem32(0x000FFF88, 0xAF770014)
|
eeObj.WriteMem32(0x000FFF8C, 0x241B0000)
|}
eeObj.WriteMem32(0x000FFF90, 0xAF770014)
 
local patcher = function()
 
Pointer == eeObj.ReadMem32(0x000FFF10)
Previous == eeObj.ReadMem32(0x000FFF14)
 
if Pointer ~= 0 and Previous ~= Pointer then
eeObj.AddHook(Pointer, 0x7120CDA8, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x8, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0xB8, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0xC0, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x158, 0x701188FC, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x160, 0x70E0CDA8, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x1F8, 0x7019CC3F, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x200, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x2A8, 0x7120CDA8, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x2B0, 0x7009E688, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x350, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x358, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x3F0, 0x701188FC, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x3F8, 0x70E0CDA8, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x490, 0x7019CC3F, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x498, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x540, 0x7120CDA8, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x548, 0x7009E688, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x5E8, 0x0019C900, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x5F0, 0x0325C820, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x688, 0x000F7880, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x690, 0x22310006, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x728, 0x7017BEC8, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x730, 0x71D18D88, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x7E0, 0x00000000, function() eeObj.AdvanceClock(600) end)
eeObj.AddHook(Pointer+0x7E8, 0x00000000, function() eeObj.AdvanceClock(600) end)
end
end
emuObj.AddVsyncHook(patcher)

Revision as of 18:15, 29 August 2024

apiRequest(0.1)

local eeObj = getEEObject() local emuObj = getEmuObject() local Pointer = 0 local Previous = 0 eeObj.WriteMem32(0x0011F38C, 0x0803FFC8) eeObj.WriteMem32(0x000FFF20, 0x3C1B000F) eeObj.WriteMem32(0x000FFF24, 0x377BFF00) eeObj.WriteMem32(0x000FFF28, 0xAF770000) eeObj.WriteMem32(0x000FFF2C, 0xAF760004) eeObj.WriteMem32(0x000FFF30, 0xAF750008) eeObj.WriteMem32(0x000FFF34, 0xAF74000C) eeObj.WriteMem32(0x000FFF38, 0x3C1701FF) eeObj.WriteMem32(0x000FFF3C, 0x36F7FCF0) eeObj.WriteMem32(0x000FFF40, 0x24167000) eeObj.WriteMem32(0x000FFF44, 0x26D618B4) eeObj.WriteMem32(0x000FFF48, 0x8EF70000) eeObj.WriteMem32(0x000FFF4C, 0x02D7B821) eeObj.WriteMem32(0x000FFF50, 0x3C157120) eeObj.WriteMem32(0x000FFF54, 0x36B5CDA8) eeObj.WriteMem32(0x000FFF5C, 0x12950004) eeObj.WriteMem32(0x000FFF58, 0x8EF40000) eeObj.WriteMem32(0x000FFF64, 0x26F70004) eeObj.WriteMem32(0x000FFF68, 0x1000FFFB) eeObj.WriteMem32(0x000FFF70, 0xAF770010) eeObj.WriteMem32(0x000FFF7C, 0x8F74000C) eeObj.WriteMem32(0x000FFF80, 0x8F760004) eeObj.WriteMem32(0x000FFF84, 0x8F750008) eeObj.WriteMem32(0x000FFF88, 0xAF770014) eeObj.WriteMem32(0x000FFF8C, 0x241B0000) eeObj.WriteMem32(0x000FFF90, 0xAF770014)

local patcher = function()

Pointer == eeObj.ReadMem32(0x000FFF10) Previous == eeObj.ReadMem32(0x000FFF14)

if Pointer ~= 0 and Previous ~= Pointer then eeObj.AddHook(Pointer, 0x7120CDA8, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x8, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0xB8, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0xC0, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x158, 0x701188FC, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x160, 0x70E0CDA8, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x1F8, 0x7019CC3F, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x200, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x2A8, 0x7120CDA8, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x2B0, 0x7009E688, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x350, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x358, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x3F0, 0x701188FC, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x3F8, 0x70E0CDA8, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x490, 0x7019CC3F, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x498, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x540, 0x7120CDA8, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x548, 0x7009E688, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x5E8, 0x0019C900, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x5F0, 0x0325C820, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x688, 0x000F7880, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x690, 0x22310006, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x728, 0x7017BEC8, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x730, 0x71D18D88, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x7E0, 0x00000000, function() eeObj.AdvanceClock(600) end) eeObj.AddHook(Pointer+0x7E8, 0x00000000, function() eeObj.AdvanceClock(600) end) end end emuObj.AddVsyncHook(patcher)