Editing PSP Emulation

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 1: Line 1:
=='''PSPHD'''==
=='''PSPHD'''==
The new PS Plus PSP emulator includes plenty of undiscovered functionalities, it even allows patches directly to the emulated Allegrex cpu.
Not many CLI commands were added this time around. Very few commands have a description to their usage inside of the eboot.bin, everything else is just guesswork from the scene. Plenty of LUA commands need to be understood before the compatibility of games can improve. The PSP emulator has not gained the same popularity as the ps2 emulator due to the existence of an unofficial PPSSPP core in the unofficial Retroarch port for the PS4. As far as the compatibility and performance go, the Retroarch core is yet to be bested. This emulator may hold potential, but the potential can only go so far as it seems not to have support for gamedata installation, which in turn will render many games unplayable.


== Commands ==
== Commands ==
'''Known functions:''' Require cleanup.
 
<br>The rest of the cli and lua commands can all be found inside of an emu's decrypted '''eboot.bin'''.
=== config-emu-ps4.txt commands ===
=== CLI commands ===
 
These commands can be added to any of these files:
* '''config-title.txt'''
* '''package-ps4.conf'''
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Command !! Values !! Notes !! Usage  
! Command !! Values !! Notes !! Usage  
|-style="background-color:#FEA15C"
|  || General || ||
|-
|-
| --boot || || Set directory of psp game's boot.bin || [disc0:/PSP_GAME/SYSDIR/BOOT.BIN]
| --boot || || [disc0:/PSP_GAME/SYSDIR/BOOT.BIN - path (no loaders support like on PS3? vide ct2, psc)] ||
|-
|-
| --notrophies || || Enable/disable trophies||  
| --notrophies || || ||
|-
|-
| --ps4-trophies  || || ||
| --xobuttonmode || oenter, ocancel || ||
|-
|-
| --locale || || ||
| --lang || "CHOSEN LANGUAGE" || Language selector, includes "en" "jp "es" "it" "fr" and others ||--lang="en"
|-
|-
| --image || umd0 ,disc0 || Set path for disc image ||
| --autoresampler || true, false|| Turns on the auto-resampler. Assumes textures in texreplace are at 8x resolution and resamples them at load, May only work on new LocoRoco Midnight Carnival emu || --autoresampler=true
|-
|-
| --vms || ? || ? ||
| --volume || || ? (Adjusting volume level to %d%%) ||
|-
|-
| --addon || || ||
| --locale || ||
|-
|-
| --host || Sets host directory || --host="/hostapp/" ||
| --image || umd0 ,disc0 || ||
|-
|-
| --loglevel || none, all, warn, info, error, debug, trace || debug logging  ||
| --addon || || ||
|-
|-
| --xobuttonmode || oenter, ocancel || Switcher between x and circle button, made specifically for japanese gamers  ||
| --host || host0, flash0 || ||
|-
|-
| --lang || Including but not limited to "en" "jp" "fr" "it"  || Language selector || --lang="en"
| --texsave || || ||
|-
|-
| --savedata-mode || ? || ? ||
| --texmissingsave || || ||
|-
|-
| --securesaves || true, false || Enable/disable encrypted savegames || --securesaves=true
| --savedata-mode || || ||
|-
|-
| --multisaves || true, false || Enable Multiple Savegames || --multisaves=true  
| --securesaves || true, false || Enable encrypted savegames || --securesaves=true
|-
|-
| --samplesave || ? || ? ||
| --multisaves || true false || Enable Multiple Savegames || --multisaves=true
|-style="background-color:#ff99c2"
| || Graphical fixes || ||
|-
|-
| --antialias || off, MSAA4x, SSAA4x|| Anti-aliasing options || --antialias=off
| --savedatamulti-size-game || || ||
|-
|-
| --texcachemode || patchworkheroes drawbounds, drawboundsloco, patchworkheroes, locoroco2, rondo, full || for issues with texture cache (modes lower than full possibly read some textures directly without cache). || --texcachemode=patchworkheroes
| --savedatamulti-size-user || || ||
|-
|-
| --texclutmode || filter, full || || --texclutmode=full
| --samplesave || || ||
|-
|-
| --texloadmode || launch, ondemand_lz4 || Seems to be a selector of when to load textures, either before the game requires it, or once the game requires it  ||
| --vramcopyback || 0, 10000000 || || --vramcopyback=45
|-
|-
| --depthscalehack || true?, false? || ||--depthscalehack=true
| --replacementfilter || true,false || This forces alpha blending to on for replaced textures. || --replacementfilter=true
|-
|-
| --depthscalehack || true?, false? || ||--depthscalehack=true
| --texreplace || || ||
|-
|-
| --locorocomeshsmooth || true, false || Custom mesh smoothing for loco roco games(?)|| --locorocomeshsmooth=true
| --samplereplace || || ||
|-
|-
| --locorocomeshsmoothnonindexed || true, false || Turns "locorocomeshsmooth" mesh smoothing into non-indexed(?) ||--locorocomeshsmoothnonindexed=true
| --spu2Trace || true,false || || --spu2Trace=true
|-
|-
| --forcenobilinear || true, false || Turn bilinear filtering on/off, setting it to True will fix many graphical glitches in games that use 2D Images ||--forcenobilinear=true
| --spu2-c1-memin-to-bgm || true,false || || --spu2-c1-memin-to-bgm=true
|-style="background-color:#D7EF54"
|  || Game fixes || ||
|-
|-
| --godofwarhack || true, false || Likely a performance patch for games that go way above the fps cap. Managed to help '''God Of War - Ghost Of Sparta''' skip intro freeze. it could possibly be used as a speedhack.  [https://github.com/hrydgard/ppsspp/pull/15640 Might be this?]|| --godofwarhack=true
| --replacementalpha || true,false || || --replacementalpha=true
|-style="background-color:#03fcc2"
|  || No effect / unknown values || ||
|-
|-
| --texloadcores || 0, 100 || textures to load || texloadcores=2
| --parappaalphahack || true,false || || --parappaalphahack=true
|-
|-
| --smoothlevel || 0, 100 || Mesh smoothing level? || --smoothlevel=0
| --parappajapanesefonthack || true,false || Enables Support For Japanese Fonts ??||
|-
|-
| --anisolevel || 0, 100 || Anisotropic filtering level?? ||
| --locorocomeshsmooth || true,false || || --locorocomeshsmooth=true
|-
|-
| --parappajapanesefonthack || true?, false? || Enables Support For Japanese Fonts ??|| --parappajapanesefonthack=true
| --godofwarhack || true,false || || --godofwarhack=true
|-
|-
| --clamp-line-thickness-min || ? || ? ||
| --locorocomeshsmoothnonindexed || true,false || ||--locorocomeshsmoothnonindexed=true
|-
|-
| --clamp-line-thickness-max || ? || ? ||
| --clamp-line-thickness-min || || ||
|-
|-
| --parappareplacecolor || The command expects 8 Hex values || (rgb?) ||
| --clamp-line-thickness-max || || ||
|-
|-
| --msxxadhoc || true?, false? || ad hoc support ? ||
| --gputhread || true,false || Run the PSP GPU on a separate thread ||
|-
|-
| --parappaalphahack || true?, false? || Doesn't seem to have any effect.|| --parappaalphahack=true
| --antialias || off, MSAA4x, SSAA4x|| ||
|-
|-
| --umddelay || ? || Seems to be I/O timing method. Doesn't seem to have any effect  ||
| --texcachemode || patchworkheroes drawbounds, drawboundsloco, patchworkheroes, locoroco2, rondo || || --texcachemode=patchworkheroes
|-
|-
| --vramcopyback || 0, 10000000 || for games that download data from GPU to Allegrex || --vramcopyback=45
| --texclutmode || filter, full || || --texclutmode=full
|-
|-
|-style="background-color:#7698FF"
| --texloadmode || launch, ondemand_lz4 || ||
| || Speedhacks / Possible duplicates|| ||
|-
|-
| --antialias || off || Turning Anti-Alias Off Improves Performance||--antialias=off
| --depthscalehack || true,false || ||--depthscalehack=true
|-
|-
| --texclutmode || full || Turns on filtering of CLUT hashes to avoid repeat indexed textures ||--texclutmode=full
| --forcenobilinear || true,false || ||--forcenobilinear=true
|-
|-
| --texloadcores || 0 || Textures to load ||--texloadcores=12
| --texloadcores || 2, 12? || || texloadcores=2
|-
|-
| --smoothlevel || 0 || Set mesh smooth level||--smoothlevel=0
| --smoothlevel || 0, 12? || ||--smoothlevel=0
|-
|-
| --gputhread || true, false || possibly move GPU emulation to another thread. Speedhack, but can decrease compatibility. || --gputhread=true
| --anisolevel || || ||
|-
|-
| --texcachemode || patchworkheroes drawbounds, drawboundsloco, patchworkheroes, locoroco2, rondo || Set texture caching method ||--texcachemode=patchworkheroes
| --msxxadhoc || || ||
|-
|-
| --anisolevel || 0, 100 || Anisotropic filtering level?? ||
| --parappareplacecolor || The command expects 8 Hex values || (rgb?) ||
|-
| --present || vblankstart, setframebuf, drawsync|| set when frame is presented. Sync issues, flickering screen, tearing, input lag, etc. Doesn't seem to have any effect. ||--present=setframebuf
|-
| --texrecent || true || Optimize texture hashes ||--texrecent=true
|}
|}
====Syphon Filter Dark Mirror====
 
==== Speedhacks ====
 
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Command !! Values !! Notes !! Usage   
! Command !! Values !! Notes !! Usage   
|-
|-
| --force-native-aspect-ratio || || ||
| --antialias || off || Turning Anti-Alias Off Improves Performance||--antialias=off
|-
|-
| --use-higher-precision-depth || || ||
| --texclutmode || full || Turns on filtering of CLUT hashes to avoid repeat indexed textures ||--texclutmode=full
|-
|-
| --optimize-fb-self-resolves || || ||
| --texloadcores || 2, 48?|| Cores to use loading textures (higher count = more memory) ||--texloadcores=12
|-
|-
| --force-dsf-present || || ||
| --smoothlevel || 0,12 ?|| ||--smoothlevel=0
|-
|-
| --bend-30hz-lock|| || ||
| --texcachemode || patchworkheroes drawbounds, drawboundsloco, patchworkheroes, locoroco2, rondo || ||--texcachemode=patchworkheroes
|-
|-
| --setframebuf-auto-vblank-wait-threshold|| || ||
| --present || vblankstart, setframebuf, drawsync|| Display on draw to reduce latency ||--present=setframebuf
|-
|-
| --gpu-renderthread|| || ||
| --texrecent || true || Optimize texture hashes ||--texrecent=true
|-
| --force-triangle-clip-off|| || ||
|-
| --hack-use-sku-vms|| || ||
|-
| --active-sku || || ||
|-
| --psp-right-stick-action || 0,1 || ||--psp-right-stick-action=1
|-
| --psp-right-stick-deadzone-x || || ||--psp-right-stick-deadzone-x=15
|-
| --psp-right-stick-deadzone-y || || ||--psp-right-stick-deadzone-y=15
|-
| --psp-right-stick-deadzone-semicircle-arc || || ||--psp-right-stick-deadzone-semicircle-arc=40
|-
|-
| --umddelay || true || ||--umddelay=true
|}
|}


====Texture replacement====
===LUA Commands===
Your lua can be placed as '''\Image0\Patches\XXXXYYYYY\XXXXYYYYY_patches.lua''' 
<br>XXXXYYYYY being the game's Region code
<br>'''Requires Cleanup'''.
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Command !! Values !! Notes !! Usage 
! Command !! Usage !! Notes - Example
|-
|-
| --texswitch||true, false|| Enables Texture replacement || --texswitch=true
| apiRequest || '''apiRequest(<api version>)''' || example: apiRequest(0.1) 
Calling api is mandatory. some commands require higher versions.
|-
|-
| --texsave || || ||
! !! getEmuObject class !!
|-
|-
| --texmissingsave || || ||
|getEmuObject || '''local emuObj = getEmuObject()''' || Required for all functions using emuObj
|-
|-
| --autoresampler || true, false|| Turns on the auto-resampler. Assumes textures in texreplace are at 8x resolution and resamples them at load, May only work on new LocoRoco Midnight Carnival emu || --autoresampler=true
| AddVsyncHook ||emuObj.AddVsyncHook()||
|-
| --texreplace || Directory || Set directory of texture replacement folder || --texreplace="host0:texreplace"
|-
| --replacementfilter || true, false || This forces alpha blending to on for replaced textures. || --replacementfilter=true
|-
| --replacementalpha || true, false || || --replacementalpha=true
|-
|}
 
===XXXXYYYYY_patches.lua===
The lua can be placed as: '''scripts\XXXXYYYYY_patches.lua'''
 
====Emulator commands====
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Command !! Usage !! Notes - Example
|-
|-
|getEmuObject || '''local emuObj = getEmuObject()''' || Required for all functions using emuObj
| RemoveVsyncHook ||emuObj.RemoveVsyncHook()||
|-
|-
|LoadSlideshow ||emuObj.LoadSlideshow()||
| AddBootHook ||emuObj.AddBootHook()||
|-
|-
|StartSlideshow ||emuObj.StartSlideshow()||
|RemoveBootHook||emuObj.RemoveBootHook()||
|-
|-
|Log ||emuObj.Log()||
|Log ||emuObj.Log()||
|-
|-
| GetLanguage ||emuObj.GetLanguage()|| Get the language the ps4 is using
| GetLanguage ||emuObj.GetLanguage()||
|-
|-
| GetNativeLanguage ||emuObj.GetNativeLanguage()||
| GetNativeLanguage ||emuObj.GetNativeLanguage()||
Line 201: Line 161:
|LoadState ||emuObj.LoadState()||
|LoadState ||emuObj.LoadState()||
|-
|-
| SaveState ||emuObj.SaveState()||  
| SaveState ||emuObj.SaveState()||
|-
|-
| SetFDExtraDelay ||emuObj.SetFDExtraDelay()|| 0? 1?
| SetFDExtraDelay ||emuObj.SetFDExtraDelay()||
|-
|-
| MeshSmooth ||emuObj.MeshSmooth()||
| MeshSmooth ||emuObj.MeshSmooth()||
Line 236: Line 196:
|-
|-
| PlayVideo||emuObj.PlayVideo()||
| PlayVideo||emuObj.PlayVideo()||
|-
| AddGPUHook ||emuObj.AddGPUHook()||
|-
|-
| RescaleUForUpscale ||emuObj.RescaleUForUpscale()||
| RescaleUForUpscale ||emuObj.RescaleUForUpscale()||
Line 247: Line 209:
| AdjustUVJitter ||emuObj.AdjustUVJitter()||
| AdjustUVJitter ||emuObj.AdjustUVJitter()||
|-
|-
| OverrideFBSize||emuObj.OverrideFBSize()|| Override framebuffer size ?
| OverrideFBSize||emuObj.OverrideFBSize()||
|-
| PadSetButtonsMode || emuObj.PadSetButtonsMode() || emuObj.PadSetButtonsMode(pad.BUTTONS_MODE_OPTION_IS_SELECT)
|-
|-
|RemapSavedata || emuObj.RemapSavedata() ||emuObj.RemapSavedata("UCUS98711", "CUSA06171", "504e802b04a1838c32b616abbe0b475fbea1c823825ef0df06cc2bad129ce2f7")
|RemapSavedata || emuObj.RemapSavedata() ||emuObj.RemapSavedata("UCUS98711", "CUSA06171", "504e802b04a1838c32b616abbe0b475fbea1c823825ef0df06cc2bad129ce2f7")
|-
| PadVibrate|| emuObj.PadVibrate() || emuObj.PadVibrate(5,180,180)
|-
|-
| NeoMode || emuObj.NeoMode() || Checks whether or not the ps4 is pro  
| NeoMode || emuObj.NeoMode() || Checks whether or not the ps4 is pro  
|-
|-
| ThrottleMax || emuObj.ThrottleMax() || Disable framelimiter during loading screens. This setting can sometimes be harmful when used globally in config files. Loading times are faster, but the game also runs faster than it should when the PS4 has enough free cpu power.
| ThrottleMax || emuObj.ThrottleMax() ||
|-
|-
| ThrottleFast|| emuObj.ThrottleFast() || Faster than default, but exact value is unknown.
| ThrottleFast|| emuObj.ThrottleFast() ||
|-
|-
| ThrottleNorm ||emuObj.ThrottleNorm() || Enable default framelimiter (50/60 fps depend on region)
| ThrottleNorm ||emuObj.ThrottleNorm() ||
|-
|-
|SetTextureHashMode||emuObj.SetTextureHashMode()||
|SetTextureHashMode||emuObj.SetTextureHashMode()||
Line 272: Line 238:
|-
|-
| CopyFB || emuObj.CopyFB() ||
| CopyFB || emuObj.CopyFB() ||
|-style="background-color:#c6ecd9"
| Hooks  || ||
|-
|-
| AddVsyncHook ||emuObj.AddVsyncHook()|| Set function to be done on every vsync
! !! getAXObject class !!
|-
|-
| RemoveVsyncHook ||emuObj.RemoveVsyncHook()|| Remove vsynchook
| getAXObject ||'''local axObj = getAXObject()''' || Required for all functions using AXObject
|-
|-
| AddBootHook ||emuObj.AddBootHook()|| Set function to be done when the game boots up
| AddHook || axObj.AddHook() ||
|-
|-
|RemoveBootHook||emuObj.RemoveBootHook()|| remove function to be done when the game boots up
| RemoveHook || axObj.RemoveHook() ||
|-
|-
| AddGPUHook ||emuObj.AddGPUHook()||
|SetPC|| axObj.SetPC() ||
|-
|-
|-style="background-color:#D7EF54"
|GetPC|| axObj.GetPC() ||
|  Pad || ||  
|-
|-
| Pad require ||'''local pad = require("pad")''' || Required for all commands that rely on pad
| ReadMem32 || axObj.ReadMem32() || axObj.ReadMem32(0x87654321)
|-
|-
|PadRead || emuObj.PadRead() ||
| WriteMem32 || axObj.WriteMem32() || axObj.WriteMem32(0x87654321,0x87654321)
<br>L3        = 0x00000002
<br>R3        = 0x00000004
<br>OPTIONS  = 0x00000008
<br>UP        = 0x00000010
<br>RIGHT    = 0x00000020
<br>DOWN      = 0x00000040
<br>LEFT      = 0x00000080
<br>L2        = 0x00000100
<br>R2        = 0x00000200
<br>L1        = 0x00000400
<br>R1        = 0x00000800
<br>TRIANGLE  = 0x00001000
<br>CIRCLE    = 0x00002000
<br>CROSS    = 0x00004000
<br>SQUARE    = 0x00008000
<br>SELECT    = 0x00010000
<br>START    = 0x00020000
|-
|-
|PadReadPitch || emuObj.PadReadPitch() ||
| ReadMem16 || axObj.ReadMem16() ||  
|-
|-
|PadReadRoll || emuObj.PadReadRoll()||
| WriteMem16 || axObj.WriteMem16() ||  
|-
|-
|PadRegisterSamples || emuObj.PadRegisterSamples()||
| ReadMem8 || axObj.ReadMem8() ||  
|-
|-
| PadSetButtonsMode || emuObj.PadSetButtonsMode() ||  
| WriteMem8 || axObj.WriteMem8() ||  
<br>0 = Touch bar is split in two for Start/Select. Option is unmapped (default behaviour)
<br>1 = Touch bar is Start. Option is Select
<br>2 = Touch bar is Select. Option is Start
|-
|-
| PadVibrate|| emuObj.PadVibrate() || emuObj.PadVibrate(5,180,180)
| WriteMemStr16 || axObj.WriteMemStr16() ||
|-
|-
|}
|WriteMemStr16Z  ||axObj.WriteMemStr16Z() ||
 
====Allegrex commands====
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Command !! Usage !! Notes - Example
|-
|-
| getAXObject ||'''local axObj = getAXObject()''' || Required for all functions using AXObject
|ReadMemFloat || axObj.ReadMemFloat() ||
|-
|-
| AddHook || axObj.AddHook() ||
|WriteMemFloat || axObj.WriteMemFloat() ||
|-
| RemoveHook || axObj.RemoveHook() ||
|-
| BurnCycles|| axobj.BurnCycles() || Could be an option to overclock cpu at a hooked offset
|-
|AddAOTBlock ||axObj.AddAOTBlock()|| Ahead of time compilation block ?
|-
|Overlay ||axObj.Overlay()||
|-style="background-color:#ff8080"
| GPR || ||
|-
| gpr require || '''local gpr = require("ax-gpr-alias")''' || Required for any command that includes gpr registers
|-
|SetPC|| axObj.SetPC() ||
|-
|GetPC|| axObj.GetPC() ||
|-
|-
| GetGpr || axObj.GetGpr() ||
| GetGpr || axObj.GetGpr() ||
Line 367: Line 290:
|-
|-
|GetReg||axObj.GetReg()||
|GetReg||axObj.GetReg()||
|-style="background-color:#D7EF54"
| Memory editing || || Do note that the offsets on PPSSPP are mapped differently than the ones on the PS4
|-
|-
| ReadMem32 || axObj.ReadMem32() || Read 4 bytes from offset
| BurnCycles|| axobj.BurnCycles() ||
|-
|-
| WriteMem32 || axObj.WriteMem32() || Write 4 bytes to offset
|AddAOTBlock ||axObj.AddAOTBlock()||
|-
|-
| ReadMem16 || axObj.ReadMem16() || Read 2 bytes from offset
|Overlay ||axObj.Overlay()||
|-
| WriteMem16 || axObj.WriteMem16() || Write 2 bytes to offset
|-
| ReadMem8 || axObj.ReadMem8() || Read 1 byte from offset
|-
| WriteMem8 || axObj.WriteMem8() || Write 1 byte to offset
|-
| ReadMemString || axObj.ReadMemString() ||
|-
| WriteMemString || axObj.WriteMemString() ||
|-
| WriteMemStr16 || axObj.WriteMemStr16() ||
|-
|WriteMemStr16Z  ||axObj.WriteMemStr16Z() ||
|-
| WriteMemStringZ ||axobj.WriteMemStringZ ||
|-
|ReadMemFloat || axObj.ReadMemFloat() ||
|-
|WriteMemFloat || axObj.WriteMemFloat() ||
|-
|-
! !! Other/Unknown/Standalone Commands !!
! !! Other/Unknown/Standalone Commands !!
|-
|-
|FuncReplace || axFuncReplace() || axFuncReplace(0x8804670, "__ptmf_scall") Replace allegrex function.
|axFuncReplace || axFuncReplace() || axFuncReplace(0x8804670, "__ptmf_scall")
|-
| InsnReplace || axInsnReplace() || Replace allegrex memory
|-
|-
|}
|}
====Examples====
====Examples====
<br>'''''LUA example:'''''
'''User made lua:'''
<br>
<br>Coconut Dodge "NPEZ00164"
<pre>
<pre>
apiRequest(0.1)
local axObj = getAXObject()
local axObj = getAXObject()
local emuObj = getEmuObject()
local emuObj = getEmuObject()
local patcher = function()
local patcher = function()
--Infinite lives
axobj.WriteMem32(0x0053d5d4,0x21c828bd)
axObj.WriteMem32(0x8ACA1A4, 0x3) --0x08ACE1A4 on PPSSPP, PPSSPP addresses need to be reduced by 0x4000 in order to work on PS4
end
end


Line 420: Line 315:
</pre>
</pre>


[https://www.psdevwiki.com/ps4/Talk:PSP_Emulator_Compatibility_List#Official_PSPemu_Configuration_Files More patches can be found here]
=====Features.lua=====
=====Patches.lua=====
======Syphon Filter: Dark Mirror======
 
<pre>
<pre>
-- Lua 5.3
-- Lua 5.3
-- Title: Syphon Filter: Dark Mirror
-- Title:   Patapon 2 PSP - UCUS-98732 (USA)
apiRequest(1.0) -- request version 1.0 API. Calling apiRequest() is mandatory.


-- Patches for fixing issues with post fx in games using the Syphon Filter/Resistance engine
local gpr = require( "ax-gpr-alias" ) -- you can access Allegrex GPR by alias (gpr.a0 / gpr["a0"])
local emuObj = getEmuObject() -- emulator
local axObj = getAXObject() -- allegrex
local pad = require("pad")
local trophyObj = getTrophyObject()
 
-- INIT --
local GLOBAL = 0x8B7D088
local APPLICATION = 0x8B4C8D4
local missionID = 0
local missionRunning = false
local colonyMode = 0


apiRequest(1.0) -- request version 1.0 API. Calling apiRequest() is mandatory.
-- GAME FUNCTIONS --
 
local getApplication = function() -- getApplication
local app = axObj.ReadMem32(APPLICATION) --> 0x8c99f60
if app == 0 then
return 0
end
return axObj.ReadMem32(app) --> 0x8b8c740
end
 
--- Scenes
 
local getSceneBase = function() -- from Application::initialize
local app = getApplication()
if app == 0 then
return 0
end
return axObj.ReadMem32(app + 0xCB24) --  -0x34DC($v1)
end
 
local getNextSceneID = function() -- from System::SceneBase::setNextSceneId
local base = getSceneBase()
if base == 0 then
return 0
end
return axObj.ReadMem32(base + 8)
end
 
local getBasesScene = function()
local scene = getSceneBase()
if scene == 0 then
return 0
end
return axObj.ReadMem32(scene + 0xC)
end
 
local getMissionScene = function()
local scene = getBasesScene()
if scene == 0 then
return 0
end
return axObj.ReadMem32(scene + 0xC)
end
 
local getGameScene = function()
local scene = getMissionScene()
if scene == 0 then
return 0
end
return axObj.ReadMem32(scene + 0xC)
end
 
local getSceneID = function(scene)
return axObj.ReadMem32(scene + 0x27354) -- from Labo::Game__Talk__CommandGame__getMissionId
end
 
local isTitle = function()
return getMissionScene() == 0
end
 
local isCamp = function()
return isTitle() == false and getGameScene() == 0
end
 
local isInMission = function()
if isTitle() == true or isCamp() == true then
return false
end
 
return getGameScene() ~= 0
end


local emuObj = getEmuObject()
--- Game functions ---
local cpu = getAXObject()


-- The bloom filter uses 1.5 pixel jitter to make a ghetto blur. When up-ressed, this doesn't look good.
local getMissionID = function() -- from Game::Game::initialize
-- To compensate, reduce the jitter amount before rendering.
if isCamp() == true then
function BloomJitterPlusAdjust()
local scene = getMissionScene()
-- 1.5 pixel "+" pattern
return getSceneID(scene)
emuObj.AdjustUVJitter(0, 4, 0.0, 1.5)
elseif isInMission() == true then
emuObj.AdjustUVJitter(4, 4, 0.0, -1.5)
local scene = getGameScene()
emuObj.AdjustUVJitter(8, 4, 1.5, 0.0)
return getSceneID(scene)
emuObj.AdjustUVJitter(12, 4, -1.5, 0.0)
end
return -1
end
end


function BloomJitterCrossAdjust()
function getMissionName() -- from Bases__Talk__CommandCamp__setMissionNameFromVar
-- 1.5 pixel "x" pattern
local missionName = ""
emuObj.AdjustUVJitter(0, 4, 1.5, 1.5)
local index = axObj.ReadMem32(GLOBAL) -- 0x8c9fbc0
emuObj.AdjustUVJitter(4, 4, -1.5, 1.5)
 
emuObj.AdjustUVJitter(8, 4, 1.5, -1.5)
if index == 0 then
emuObj.AdjustUVJitter(12, 4, -1.5, -1.5)
return
end
local offset = axObj.ReadMem32(index + 0x10C0) -- 0x8d07840
 
if offset == 0 then
return
end
local strPtr = axObj.ReadMem32(offset + 0x1070)
local missionNamePtr = strPtr + 0x5FA2 -- is 0x8D38C62
missionName = axObj.ReadMemStr16(missionNamePtr)
return missionName
end
end


local jitterFixPlus = emuObj.AddGPUHook(0x40dc000, 0, 16, 0x40d4000, BloomJitterPlusAdjust)
--[[ vibrate on objects --
local jitterFixCross = emuObj.AddGPUHook(0x40d4000, 0, 16, 0x40dc000, BloomJitterCrossAdjust)
emuObj.PadVibrate() causes the DS4 to vibrate. The parameters are as follow:
1st parameter: Large Motor speed (0=off, 1 to 255=speed)
2nd parameter: Small Motor speed (0=off, 1 to 255=speed)
3rd parameter: Duration of the vibration in milliseconds (1000 = 1 second, Max 6 seconds).
  Once the time has elapsed both motors are turned off automatically.
]]--
 
local ctr = 0
local keyCtr = 0x0
local keyDown = 0
local noteCtr = 0
local playSeq = true
local lastSeq = 0


function depthquery()
local H1 = function() -- sgxResFindSeq
local querystruct = 0x8eda968 -- this is always in a fixed location
local id = axObj.GetGpr(gpr.a1)
-- the depth query struct is fixed to 24 entries
if playSeq == true then
-- 0..15 seem to be always used for lights, 16..23 are for npcs
lastSeq = 0 -- reset
for i=0,23 do
playSeq = false
local querytype = cpu.ReadMem32(querystruct+0)
end
local valid = cpu.ReadMem32(querystruct+1*4)
if id == lastSeq then
if valid ~= 0xffffffff then
return -- don't repeat
--local queryx = cpu.ReadMem32(querystruct+2*4)
end
--local queryy = cpu.ReadMem32(querystruct+3*4)
--local querydepth = cpu.ReadMem32(querystruct+4*4)
-- allow repeat for "step" sounds: dragon,frog,manbroth,demon,worm,plant,machine,crab,crab,
--local querywidth = cpu.ReadMem32(querystruct+5*4)
-- machine,demon dragon,demon dragon,demon dragon,worm,worm,kamen rock
--local queryheight = cpu.ReadMem32(querystruct+6*4)
if id ~= 0x41c and id ~= 0x418 and id ~= 0x35c and id ~= 0x7cc and id ~= 0x560 and id ~= 0x470
--local param1c = cpu.ReadMem32(querystruct+7*4)
and id ~= 0x4c4 and id ~= 0x39c and id ~= 0x3c8 and id ~= 0x51c and id ~= 0x800
--local param20 = cpu.ReadMem32(querystruct+8*4)
and id ~= 0x82c and id ~= 0xd54 and id ~= 0x484 and id ~= 0x19c then
local param24 = cpu.ReadMem32(querystruct+9*4)
if id == lastSeq then
--local result = cpu.ReadMemFloat(querystruct+10*4)
return -- don't repeat
if param24 <= 0 then
end
cpu.WriteMem32(querystruct+1*4, 0xffffffff) -- to be removed from the list -> mark as invalid
end
else
lastSeq = id
if querytype == 3 then -- n x n coverage based occlusion used by lights. Object opacity is set to (visible_samples / total_samples)
local missionID = getMissionID()
cpu.WriteMemFloat(querystruct+10*4, 0.0) -- always hide lights
 
else -- Enemies use a 5-point (corners + center) occlusion check. Object is visible if any of the points is visible.
-- all levels --
cpu.WriteMemFloat(querystruct+10*4, 1.0) -- set always visible
if missionID == 0 then
end
if id == 0x898 then
emuObj.PadVibrate(0,255,100) -- When a Patapon unit is created for tree of life.
end
end
if id == 0x670 then
emuObj.PadVibrate(50,255,250) -- After the player looses “Fever” mode (whistle down sound)
elseif id == 0x9f0 or id == 0x910 then -- (was 8f0)
emuObj.PadVibrate(0,240,80) -- New Patapon created.
elseif id == 0x3f8 then
emuObj.PadVibrate(20,0,200) -- Kaching collected
end
if missionID > 0 then
if id == 0x568 or id == 0x53c then -- yippe or fireworks after complete. (was 508)
missionRunning = false -- ? 31c 568 3a0
end
if missionRunning == false then
return
end
if missionID < 123 then
----- non-boss levels -----
if id == 0x2d0 or id == 0x354 or id == 0x2a4 or id == 0x80 then
emuObj.PadVibrate(100,10,260) -- falling building/object
elseif id == 0x47c or id == 0x450 then
emuObj.PadVibrate(0,150,100) -- picked up object
elseif id == 0x510 then
emuObj.PadVibrate(0,255,100) -- totem award
elseif id == 0x328 then
emuObj.PadVibrate(16,40,200) -- Stick barrier break
elseif id == 0x170 then
emuObj.PadVibrate(66,180,900) -- Windmill breaking
elseif id == 0x334 then
emuObj.PadVibrate(80,40,200) -- Cannon ball blast
elseif id == 0x2b0 then
emuObj.PadVibrate(120,20,300) -- Gillotine
elseif id == 0x19c then
emuObj.PadVibrate(130,30,300) -- Karmemen Rock Toss
end
if id == 0x124 and missionID == 118 then
emuObj.PadVibrate(55,0,7000) -- Gate collapse
end
if id == 0x13c and missionID == 121 then
emuObj.PadVibrate(55,0,500) -- Fort collapse
end
else
----- boss levels -----
 
-- Dragon --
if id == 0x41c then
emuObj.PadVibrate(10,0,100) -- Dragon step
elseif id == 0x448 then
emuObj.PadVibrate(10,0,200) -- Dragon jump, retreat, etc.
elseif id == 0x4f8 then
emuObj.PadVibrate(10,50,100) -- Dragon jump, retreat, etc.
elseif id == 0x5a8 then
emuObj.PadVibrate(120,0,900) -- Dragon fall/dead
 
-- Demon Dragon --
elseif id == 0x800 then
emuObj.PadVibrate(30,0,100) -- Demon Dragon step
elseif id == 0x82c then
emuObj.PadVibrate(0,130,100) -- Demon Dragon short step
elseif id == 0xd54 then
emuObj.PadVibrate(0,170,50) -- Demon Dragon wing flap
elseif id == 0xb9c then
emuObj.PadVibrate(170,0,250) -- Demon Dragon fireball
elseif id == 0xbf4 then
emuObj.PadVibrate(190,0,900) -- Demon Dragon fall/dead
-- FrogRobot --
elseif id == 0x418 then
emuObj.PadVibrate(15,0,200) -- FrogRobot / Spider step
elseif id == 0x5d0 then
emuObj.PadVibrate(15,0,200) -- FrogRobot jump, crawl
elseif id == 0x4f4 then
emuObj.PadVibrate(15,0,200) -- FrogRobot fist slam
elseif id == 0x4c8 then
emuObj.PadVibrate(0,10,2000) -- FrogRobot laser / Plant gas
elseif id == 0x520 then -- cant use 0x54c
emuObj.PadVibrate(150,0,1000) -- FrogRobot fall/dead
-- Manbroth --
elseif id == 0x35c then
emuObj.PadVibrate(15,0,400) -- Manbroth step
elseif id == 0x388 then
emuObj.PadVibrate(15,0,400) -- Manbroth stomp
elseif id == 0x438 then
emuObj.PadVibrate(0,150,500) -- Manbroth: snow spray / Firebird gas
elseif id == 0x40c then
emuObj.PadVibrate(0,10,500) -- Manbroth: scoop
elseif id == 0x330 then
emuObj.PadVibrate(150,0,700) -- Manbroth: fall/dead
-- Demon --
elseif id == 0x7cc then
emuObj.PadVibrate(45,5,400) -- Demon step 1
elseif id == 0x5d8 or id == 0x9dc or id == 0x9b0 then
emuObj.PadVibrate(85,10,180) -- Demon step 2
elseif id == 0x7a0 then
emuObj.PadVibrate(10,10,180) -- Demon jump
elseif id == 0x7f8 then
emuObj.PadVibrate(0,220,90) -- Demon breath
elseif id == 0x380 then
emuObj.PadVibrate(200,0,150) -- Demon meteors
elseif id == 0x92c then
emuObj.PadVibrate(170,0,2000) -- Demon: fall/dead
-- Firebird --
elseif id == 0x598 then -- or 0x678?
emuObj.PadVibrate(55,5,450) -- Firebird slam
elseif id == 0x540 then
emuObj.PadVibrate(10,160,180) -- Firebird peck
elseif id == 0x6d0 then
emuObj.PadVibrate(10,230,500) -- Firebird gas
elseif id == 0x490 then
emuObj.PadVibrate(200,0,1000) -- Firebird: fall/dead
-- Worm --
elseif id == 0x3d4 or id == 0x400 then
emuObj.PadVibrate(5,55,250) -- Worm burrow
elseif id == 0x534 or id == 0x508 then
emuObj.PadVibrate(5,55,250) -- Worm slide
elseif id == 0x4b0  then
emuObj.PadVibrate(5,155,1100) -- Worm fire
elseif id == 0x484 then
emuObj.PadVibrate(75,10,350) -- Worm slam
elseif id == 0x560 then
emuObj.PadVibrate(175,190,850) -- Worm roll
elseif id == 0x3a8 then
emuObj.PadVibrate(140,0,2000) -- Worm: fall/dead
-- Plant --
elseif id == 0x470 then
emuObj.PadVibrate(5,55,250) -- Plant jump
elseif id == 0x49c then
emuObj.PadVibrate(200,0,800) -- Plant fall/dead
-- Machine --
elseif id == 0x4c4 then
emuObj.PadVibrate(15,0,500) -- Machine step
elseif id == 0x574 then
emuObj.PadVibrate(180,0,400) -- Machine bomb
elseif id == 0x51c then
emuObj.PadVibrate(10,220,200) -- Machine gun
elseif id == 0x6a8 then
emuObj.PadVibrate(255,220,1000) -- Machine cannon
elseif id == 0x5cc then
emuObj.PadVibrate(100,12,300) -- Machine ball & chain
elseif id == 0x498 then
emuObj.PadVibrate(210,0,900) -- Machine fall/dead
-- Crab --
elseif id == 0x39c then
emuObj.PadVibrate(85,10,180) -- Crab step
elseif id == 0x3c8 then
emuObj.PadVibrate(190,0,400) -- Crab jump
elseif id == 0x420 then
emuObj.PadVibrate(5,180,180) -- Crab claw
elseif id == 0x370 then
emuObj.PadVibrate(240,10,600) -- Crab fall/dead
-- Spider --
elseif id == 0x3ec then
emuObj.PadVibrate(210,50,700) -- Spider fall/dead
 
-- OTHER --
elseif id == 0x65c then
emuObj.PadVibrate(0,200,80) -- fire (patapon yipe)
elseif id == 0x5ac then
emuObj.PadVibrate(0,200,80) -- fire burn(patapon yipe)
end
end
end
end
querystruct = querystruct + 0x2c
end
end
end
end


cpu.AddHook(0x8c163d4, 0x27bdff80, depthquery) -- = addiu sp, sp, -0x80
local H2 = function() -- Labo::Talk::CommandEffect::generateCapEffect
-- the hook code replaces the occlusion function, so just adjust the stack and return
emuObj.PadVibrate(0,255,150) -- When a Patapon unit from the players army is defeated or new special patapon created.
cpu.InsnReplace(0x8c163d8, 0x34040000, 0x27bd0080) -- addiu sp, sp, 0x80
end
cpu.InsnReplace(0x8c163dc, 0xafa40048, 0x03e00008) -- jr ra
 
cpu.InsnReplace(0x8c163e0, 0x3c0408ee, 0x00000000) -- nop
local H3 = function() -- Labo::Talk::CommandEffect::killEffect
emuObj.PadVibrate(0,255,250) -- Thunder/Lightning
end
 
local H4 = function() -- MainGame__Mission__MissionScene__initialize__4LaboFv
missionRunning = true
getMissionName()
end
 
--- HOOKS ---
local hook1 = axObj.AddHook(0x8828AA0, 0x8FBF0008, H1) -- sgxResFindSeq
local hook2 = axObj.AddHook(0x8901B84, 0x27BDFFC0, H2) -- Labo::Talk__CommandEffect__generateCapEffect
local hook3 = axObj.AddHook(0x89825B8, 0x27BDFF80, H3) -- Labo::Game__Map__ThunderLayer__generateThunder
local hook4 = axObj.AddHook(0x8914844, 0x27BDFFF0, H4) -- MainGame__Mission__MissionScene__initialize__4LaboFv
 
</pre>
</pre>
======Patapon 2'''======
 
=====Patches.lua=====
<pre>
<pre>
-- Lua 5.3
-- Lua 5.3
Line 898: Line 1,082:
</pre>
</pre>


== Emulators ==
====basic====
<pre>Every emulator is programmed in a differently. Sometimes choosing the right emulator is the only possible way to fix a game. Emulators are not provided pre-installed on the ps4, they have to be unpacked from a backup that's downloaded from the ps store from that specific game. This list includes The typical usage of some of The emulators.</pre>
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Emulator !! Usage !! API Version !! Similar emulators (compatibility)
|-
| Echochrome || The default psp emulator for PSPFPKG tool at the time of writing and the best in terms of compatibility. || ? || ?
|-
| LocoRoco Midnight Carnival  || ? || ? || ?
|-
| LocoRoco 1  || ? || ? || ?
|-
| LocoRoco 2  || ? || ? || ?
|-
| Castlevania Requiem  || ? || ? || ?
|-
| Patapon 2 || ? ||  ? || ?
|-
| PaRappa the Rapper || An unofficial emulator developed by sony with very bad compatibility ||  ? || ?
|-
| Syphon Filter: Dark Mirror || ? || ? || ?
|-
|}


==Memory mapping==
*axInsnReplace (mem, org opcode, new opcode) - Replace allegrex memory
<br>'''Note''': The memory on PPSSPP is 0x4000 offsets ahead of the memory on the PS4
*axFuncReplace - Replace allegrex function. Known implemented functions are: I3dVecSet, I3dRender__ReserveTrashQwc, I3dVecAdd, I3dVecScaleXYZ, I3dGuSetMatrix_PSP, patapon_memcpy
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Size !! Offset From -> Offset To !! Name
|-
| || 1008000000 -> 10887FFFFF ||  Allegrex memory(?)
|-
|640.00MB  || 228200000 -> 250200000 ||
|-
|64.00MB  ||  250200000 -> 254200000 ||
|-
|32.00MB  ||  254200000 -> 256200000 ||
|-
|2048.00MB ||  256200000 -> 2d6200000 ||
|-
|16.00MB  ||  2d6200000 -> 2d7200000 ||
|-
|16.00MB  ||  2d7200000 -> 2d8200000 ||
|-
|16.00MB  ||  2d8200000 -> 2d9200000 ||
|-
|16.00MB  ||  2d9200000 -> 2da200000 ||
|-
|}


===Registers map===
<br>Registers that are marked with '''(?)''' are untested but should be accurate.
<br>*'''Note''': The offsets' positions change as the CLI file's content increases, but the offsets should still be somewhere nearby the offsets listed below and the layout should be the same regardless. The PC pointer script can be used to locate another PC register properly in Echochrome's emulator
{| class=wikitable style="border: none; background: none;"
! scope=col | GPR
! scope=col | Offset
! scope=col | Notes
| rowspan=900 style="border: none; background: none;"|
! scope=col | FPU
! scope=col | Offset
|-
| zero || 0x200414CA8? || || f0 || 0x200414D4C?
|--style="background-color:#EEEFF2"
| at  || 0x200414CAC? || || f1 || 0x200414D50
|-
| v0 || 0x200414CB0  || || f2 || 0x200414D54?
|--style="background-color:#EEEFF2"
| v1 || 0x200414CB4  || || f3 || 0x200414D58?
|-
| a0 || 0x200414CB8  || || f4 || 0x200414D5C?
|--style="background-color:#EEEFF2"
| a1 || 0x200414CBC? || || f5 || 0x200414D60?
|-
| a2 || 0x200414CC0? || || f6 || 0x200414D64?
|--style="background-color:#EEEFF2"
| a3 ||  0x200414CC4? || || f7 || 0x200414D68?
|-
| t0 || 0x200414CC8? || ||f8|| 0x200414D6C?
|--style="background-color:#EEEFF2"
| t1 || 0x200414CCC? || ||f9 || 0x200414D70?
|-
| t2 ||  0x200414CD0? || || f10 || 0x200414D74?
|--style="background-color:#EEEFF2"
| t3 ||  0x200414CD4? || ||f11|| 0x200414D78?
|-
| t4 ||  0x200414CD8? || || f12 || 0x200414D7C?
|--style="background-color:#EEEFF2"
| t5 ||  0x200414CDC? || || f13 || 0x200414D80?
|-
| t6 || 0x200414CE0? || || f14 || 0x200414D84?
|--style="background-color:#EEEFF2"
| t7 || 0x200414CE4? || || f15 || 0x200414D88?
|-
| s0 ||  0x200414CE8? || || f16 || 0x200414D8C?
|--style="background-color:#EEEFF2"
| s1 || 0x200414CEC? || || f17 || 0x200414D90?
|-
| s2 ||  0x200414CF0? || || f18 || 0x200414D94?
|--style="background-color:#EEEFF2"
| s3 || 0x200414CF4? || || f19 || 0x200414D98?
|-
| s4 ||  0x200414CF8? || || f20|| 0x200414D9C?
|--style="background-color:#EEEFF2"
| s5 ||  0x200414CFC? || || f21 || 0x200414DA0?
|-
| s6 ||  0x200414D00? || || f22 || 0x200414DA4?
|--style="background-color:#EEEFF2"
| s7 ||  0x200414D04? || || f23|| 0x200414DA8?
|-
| t8 ||  0x200414D08? || || f24 || 0x200414DAC?
|--style="background-color:#EEEFF2"
| t9 ||  0x200414D0C? || || f25 || 0x200414DB0?
|-
| k0 ||  0x200414D10 || ||f26 || 0x200414DB4?
|--style="background-color:#EEEFF2"
| k1 ||  0x200414D14 || || f27 || 0x200414DB8?
|-
| gp ||  0x200414D18 || || f28|| 0x200414DBC?
|--style="background-color:#EEEFF2"
| sp || 0x200414D1C || || f29 || 0x200414DC0?
|-
| fp || 0x200414D20 ||  || f30 || 0x200414DC4?
|--style="background-color:#EEEFF2"
| {{cellcolors|#D7EF54|#000000}}ra || 0x200414D24 || || f31 || 0x200414DC8
|-
| ? || 0x20AD14D28 || ||  ||
|--style="background-color:#EEEFF2"
| last syscall? || 0x20AD14D2C || ||  ||
|-
| {{cellcolors|#7698FF|#000000}}pc || 0x200414D34 || Will show "0x0", "0x1", "0x5", if the Allegrex cpu is idle(?). || ||
|--style="background-color:#EEEFF2"
| hi || 0x200414D38 || ||  ||
|-
| lo || 0x200414D3C || ||  ||
|--style="background-color:#EEEFF2"
| Memory base? || 0x200414D48 || Shows "0x08800000", could be used as pointer or something?|| ||
|-
|}
====PC pointer====
<br>PS4CHEATER
<br>'''PSP.cht'''
<pre>
1.5|eboot.bin|ID:|VER:01.00|FM:505
simple pointer|pointer|4 bytes|@C6B8C8_2_6B8C8+210+108|data|4 bytes|143011412|0||
</pre>
'''VFPU'''
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Register !! Offset !! Register !! Offset !! Register !! Offset !! Register !! Offset
|-
| S000|| 0x200414DE0 || S001|| 0x200414DE4 || S002|| 0x200414DE8 || S003|| 0x200414DEC
|-
| S010|| 0x200414DF0 || S011|| 0x200414DF4 || S012|| 0x200414DF8  || S013|| 0x200414DFC
|-
| S020|| 0x200414E00 || S021|| 0x200414E04 || S022||  0x200414E08 || S023|| 0x200414E0C
|-
|S030|| 0x200414E10 || S031|| 0x200414E14 || S032|| 0x200414E18  || S033|| 0x200414E1C
|-
|S100|| 0x200414E20  || S101|| 0x200414E24  || S102||  0x200414E28  || S103|| 0x200414E2C
|-
| S110 || 0x200414E30  || S111|| 0x200414E34 || S112||  0x200414E38 || S113||0x200414E3C
|-
| S120|| 0x200414E40  || S121|| 0x200414E44 || S122|| 0x200414E48 || S123|| 0x200414E4C
|-
|S130|| 0x200414E50 || S131||0x200414E54  || S132|| 0x200414E58  || S133|| 0x200414E5C
|-
|S200|| 0x200414E60  || S201|| 0x200414E64 || S202||  0x200414E68 || S203||0x200414E6C
|-
|S210|| 0x200414E70  || S211|| 0x200414E74 || S212||  0x200414E78 || S213|| 0x200414E7C
|-
|S220|| 0x200414E80  || S221|| 0x200414E84 || S222|| 0x200414E88 || S223|| 0x200414E8C
|-
|S230|| 0x200414E90 || S231|| 0x200414E94 || S232||  0x200414E98 || S233|| 0x200414E9C
|-
|S300|| 0x200414EA0  || S301|| 0x200414EA4 || S302||  0x200414EA8 || S303|| 0x200414EAC
|-
|S310|| 0x200414EB0  || S311|| 0x200414EB4 || S312|| 0x200414EB8  || S313|| 0x200414EBC
|-
|S320|| 0x200414EC0  || S321|| 0x200414EC4 || S322|| 0x200414EC8 || S323||0x200414ECC
|-
|S330|| 0x200414ED0 || S331|| 0x200414ED4 || S332|| 0x200414ED8 || S333||0x200414EDC
|-
|S400|| 0x200414EE0  || S401||  0x200414EE4 || S402|| 0x200414EE8 || S403|| 0x200414EEC
|-
|S410|| 0x200414EF0  || S411||  0x200414EF4 || S412||  0x200414EF8 || S413|| 0x200414EFC
|-
|S420|| 0x200414F00 || S421|| 0x200414F04 || S422||  0x200414F08 || S423|| 0x200414F0C
|-
|S430|| 0x200414F10 || S431|| 0x200414F14 || S432||  0x200414F18 || S433|| 0x200414F1C
|-
|S500|| 0x200414F20 || S501|| 0x200414F24|| S502|| 0x200414F28 || S503|| 0x200414F2C
|-
|S510|| 0x200414F30  || S511|| 0x200414F34 || S512|| 0x200414F38 || S513|| 0x200414F3C
|-
|S520|| 0x200414F40 || S521|| 0x200414F44 || S522|| 0x200414F48 || S523||0x200414F4C
|-
|S530 || 0x200414F50|| S531|| 0x200414F54 || S532||  0x200414F58|| S533|| 0x200414F5C
|-
|S600|| 0x200414F60 || S601|| 0x200414F64 || S602|| 0x200414F68 || S603|| 0x200414F6C
|-
|S610|| 0x200414F70  || S611|| 0x200414F74 || S612||  0x200414F78 || S613||0x200414F7C
|-
|S620|| 0x200414F80  || S621|| 0x200414F84 || S622|| 0x200414F88 || S623|| 0x200414F8C
|-
|S630 || 0x200414F90 || S631|| 0x200414F94 || S632||  0x200414F98 || S633|| 0x200414F9C
|-
|S700|| 0x200414FA0 || S701 || 0x200414FA4 || S702|| 0x200414FA8  || S703|| 0x200414FAC
|-
|S710|| 0x200414FB0  || S711|| 0x200414FB4 || S712||  0x200414FB8 || S713|| 0x200414FBC
|-
|S720|| 0x200414FC0  || S721|| 0x200414FC4 || S722|| 0x200414FC8 || S723|| 0x200414FCC
|-
|S730 || 0x200414FD0|| S731|| 0x200414FD4 || S732||  0x200414FD8 || S733|| 0x200414FDC
|-
|}
= Known issues =
{| cellspacing="0" cellpadding="2" border="1" class="wikitable" style="text-align: center;"
! Issue !! Games affected !! Solution !! Description
|-
| No gamdata installation functionality (?)|| || ||
|-
| Highly unoptimized graphics renderer || || || Low fps
|-
| No support for some syscalls || || ||
|-
|}
=LUA include files=
<br>Files that need to be placed in the '''/lua_include/''' folder
'''uv-clamping.lua'''
<pre>
print ("Loading uv-clamping.lua from global scripts")
UV_CLAMPING_ENABLE = true
UV_CLAMPING_DISABLE = false
UV_CLAMPING_USE_ZERO_EDGE_ALPHA = true
UV_CLAMPING_DONT_USE_ZERO_EDGE_ALPHA = false
emuObj = getEmuObject()
-- Turns off UV clamping for the given list of textures.
-- textureTable: A list of texture base addresses.
DisableUvClampingForTextures = function(textureTable)
if emuObj.OverrideUvClampingState then
for _, texAddr in ipairs(textureTable) do
emuObj.OverrideUvClampingState(texAddr, UV_CLAMPING_DISABLE, UV_CLAMPING_DONT_USE_ZERO_EDGE_ALPHA);
end
else
print ("This emulator does not support OverrideUvClampingState()")
end
end
</pre>
'''sce-locale.lua'''
<pre>
print ("Loading sce-locale.lua from global scripts")
-- Language codes
--
-- ja    Japanese
-- en    English (US)
-- fr    French (France)
-- es    Spanish (Spain)
-- de    German
-- it    Italian
-- nl    Dutch
-- pt    Portuguese (Portugal)
-- ru    Russian
-- ko    Korean
-- zh-TW  Chinese (traditional)
-- zh-CN  Chinese (simplified)
-- fi    Finnish
-- sv    Swedish
-- da    Danish
-- no    Norwegian
-- pl    Polish
-- pt-BR  Portuguese (Brazil)
-- en-GB  English (UK)
-- tr    Turkish
-- es-MX  Spanish (Latin America)
-- ar    Arabic
-- fr-CA  French (Canada)
-- cs    Czech
-- hu    Hungarian
-- el    Greek ("Ελληνικά" in the system language menu)
-- ro    Romanian
-- th    Thai
-- vi    Vietnamese
-- id    Indonesian
-- uk    Ukrainian
-- returns locale (en-US) and language only (us), useful for lookups with fallback.
GetLocaleLangPair = function()
local locale, lang
locale = AppHost_GetLocaleTag()
lang = locale:sub(1,2)    -- grab first two digits, eg. en-US -> en
print ("[BOOT] App Host Langauge =", lang)
if locale ~= nil then
print ("[BOOT] App Host Locale =", locale)
else
print ("[BOOT] Deprecated Native Language =", lang)
end
return locale, lang
end
FindLocaleTableKey = function(table, primary, fallback, default)
-- try for a specific Locale, and if that fails fallback on just a language (without region),
-- and if that fails fallback on default.
local keyres = primary
if keyres == nil or table[keyres] == nil then
keyres = fallback
end
if keyres == nil or table[keyres] == nil then
print ("WARNING: No table entry for locale", primary, "or language", fallback, ", using default", default);
keyres = default
else
print ("Found locale table entry", keyres);
end
return keyres
end
</pre>
'''disc-selection.lua'''
<pre>
print ("Loading disc-selection.lua from global scripts")
require "sce-locale"
-- Determines and sets the active SKU.
--
-- sku_map: Cannot be nil.  A table of the form
-- {
-- en = <sku dir name>,
-- fr = <sku dir name>,
-- de = <sku dir name>,
-- it = <sku dir name>,
-- es = <sku dir name>,
--  ...
-- }
--
RegisterSkus = function(sku_map, default_locale)
if default_locale == nil then
default_locale = "en"
end
local locale, lang = GetLocaleLangPair()
local key = FindLocaleTableKey(sku_map, locale, lang, default_locale)
local sku_name = sku_map[key]
if EM_SetActiveSku == nil then
print "EM_SetActiveSku is undefined, use the stable branch of the packager or use a new version of the emulator."
end
EM_SetActiveSku(sku_name)
end
</pre>


'''ax-gpr-alias.lua'''
<pre>


-- Recommended method to import this module:
====hooks/registers====
--  local gpr = require("ax-gpr-alias")


Hooks, and registers that can be called in lua api.


gpr = {}
Allegrex (usage - remove AX_):


gpr.zero = 0
*AX_GetPC
gpr.at  = 1
*AX_SetPC
gpr.v0  = 2
*AX_GetHi
gpr.v1  = 3
*AX_SetHi
gpr.a0  = 4
*AX_GetLo
gpr.a1  = 5
*AX_SetLo
gpr.a2  = 6
*AX_GetReg
gpr.a3  = 7
*AX_SetReg
gpr.t0  = 8
*AX_GetFpr
gpr.t1  = 9
*AX_SetFpr
gpr.t2  = 10
*AX_ReadMem8
gpr.t3  = 11
*AX_ReadMem16
gpr.t4  = 12
*AX_ReadMem32
gpr.t5  = 13
*AX_ReadMemFloat
gpr.t6  = 14
*AX_ReadMemString
gpr.t7  = 15
*AX_WriteMem8
gpr.s0  = 16
*AX_WriteMem16
gpr.s1  = 17
*AX_WriteMem32
gpr.s2  = 18
*AX_WriteMemFloat
gpr.s3  = 19
*AX_WriteMemString
gpr.s4  = 20
*AX_WriteMemStringZ
gpr.s5  = 21
*AX_AddHook
gpr.s6  = 22
*AX_RemoveHook
gpr.s7  = 23
*AX_Overlay
gpr.t8  = 24
*AX_InsnReplace
gpr.t9  = 25
*AX_FuncReplace
gpr.k0  = 26
gpr.k1  = 27
gpr.gp  = 28
gpr.sp  = 29
gpr.fp  = 30
gpr.ra  = 31


return gpr
Emulator (usage - remove EM_):


</pre>
*EM_SetTextureHashMode
'''multiapp.lua'''
*EM_SetTextureScaleOffset
<pre>
*EM_SetTextureSaveSubdir
-- Recommended method to import this module:
*EM_SetSampleTitle
--  local mapp = require("mapp")
*EM_SetDrawEDRam
--
*EM_ToggleTextures
-- Multi-application support module
*EM_PadRead
-- Wraps common hook calls to support multiple executables
*EM_PadReadPitch
--
*EM_PadReadRoll
*EM_PadVibrate
*EM_PadRegisterSamples
*EM_PadSetButtonsMode
*EM_AddVsyncHook
*EM_RemoveVsyncHook
*EM_ThrottleMax
*EM_ThrottleNormal
*EM_Log
*EM_GetLanguage
*EM_GetNativeLanguage
*EM_DisplayManual
*EM_LoadConfig
*EM_SaveConfig
*EM_LoadMIDI
*EM_GetMIDINotesAtTick
*EM_LoadSlideshow
*EM_StartSlideshow
*EM_LoadState
*EM_SaveState


local emuObj = getEmuObject() -- emulator
====Standard: ====
local axObj = getAXObject() -- allegrex


mapp = {}
*patches/
mapp.curAppName = emuObj.GetAppName()
*_patches.lua
*feature_data/
*_features.lua
*tooling/
*_tooling.lua
*trophy_data/
*_trophies.lua


mapp.AddBootHook = function(app, func)
==Information==
if mapp[app] == nil then
====other====
mapp[app] = {}
end


mapp[app].boot = func
*XXXXYYYYY_config.txt
end
*--vms
*--autoresampler [true]


mapp.AddHook = function(app, pc, verify, func)
*videos/
if mapp[app] == nil then
*.mp4
mapp[app] = {}
*videos/%08x.mp4
end
*audio/%08x.ogg
*--texswitch [original, replacement]
if mapp[app].hooks == nil then
mapp[app].hooks = {}
mapp[app].hookids = 1
end
local localid = mapp[app].hookids
mapp[app].hookids = mapp[app].hookids + 1
local handler = { addr = pc, v = verify, f = func, id = 0 }
if mapp.curAppName == app then
handler.id = axObj.AddHook(pc, verify, func)
end
-- print(string.format("Added Hook for app: %s, pc=%08x, handler=%d", app, pc, localid))
mapp[app].hooks[localid] = handler
return localid
end
 
mapp.RemoveHook = function(app, hookid)
-- print(string.format("RemoveHook for app: %s, id=%d", app, hookid))
if mapp[app] ~= nil then
if mapp[app].hooks ~= nil then
if mapp[app].hooks[hookid] ~= nil then
local id = mapp[app].hooks[hookid].id
mapp[app].hooks[hookid] = nil -- WBD 7/6/2018
if mapp.curAppName == app and id > 0 then
axObj.RemoveHook(id)
end
end
end
end
end
 
mapp.GetHookPC = function(app, hookid)
if mapp[app] ~= nil then
if mapp[app].hooks ~= nil then
if mapp[app].hooks[hookid] ~= nil then
return mapp[app].hooks[hookid].addr
end
end
end
return 0
end
 
mapp.AddVSyncHook = function(app, func)
if mapp[app] == nil then
mapp[app] = {}
end
mapp[app].vsync = func
if mapp.curAppName == app then
emuObj.AddVsyncHook(func)
end
end
 
mapp.RemoveVSyncHook = function(app)
if mapp[app] == nil then
mapp[app] = {}
end
if mapp[app].vsync ~= nil then
table.remove(mapp[app].vsync)
end
if mapp.curAppName == app then
emuObj.RemoveVsyncHook(func)
end
end
 
-- Actual switch functionality
emuObj.AddBootHook(function()
local app = emuObj.GetAppName()
 
if app ~= mapp.curAppName then
-- switch out the old handlers
-- print(string.format("Switching out handlers for app: %s", mapp.curAppName))
if mapp[mapp.curAppName] ~= nil then
if mapp[mapp.curAppName].vsync ~= nil then
emuObj.RemoveVsyncHook()
end
if mapp[mapp.curAppName].hooks ~= nil then
local hooks = mapp[mapp.curAppName].hooks
-- print(string.format("hooks: %d", #hooks))
for k,v in pairs(hooks) do
if v.id > 0 then
axObj.RemoveHook(v.id)
v.id = 0
end
end
end
end
-- switch current app name
mapp.curAppName = app
-- install the new handlers
-- print(string.format("Switching in handlers for app: %s", mapp.curAppName))
if mapp[mapp.curAppName] ~= nil then
if mapp[mapp.curAppName].vsync ~= nil then
emuObj.AddVsyncHook(mapp[mapp.curAppName].vsync)
end
if mapp[mapp.curAppName].hooks ~= nil then
local hooks = mapp[mapp.curAppName].hooks
-- print(string.format("hooks: %d", #hooks))
for k,v in pairs(hooks) do
v.id = axObj.AddHook(v.addr, v.v, v.f)
end
end
end
end
if mapp[mapp.curAppName] ~= nil then
if mapp[mapp.curAppName].boot ~= nil then
mapp[mapp.curAppName].boot()
end
end
end)
 
return mapp
 
</pre>
 
'''pad.lua'''
<pre>
-- Recommended method to import this module:
--  local pad = require("pad")
--
-- Buttons marked PS4 are not used by the emulator, but can be read from Lua
--
-- Read the Pad state with getEmuObject().PadRead()
-- ie:
-- local padstate = getEmuObject().PadRead()
--
 
pad = {}
 
pad.L3        = 0x00000002 -- L3 (PS4)
pad.R3        = 0x00000004 -- R3 (PS4)
pad.OPTIONS  = 0x00000008 -- Options (PS4)
pad.UP        = 0x00000010 -- Up
pad.RIGHT    = 0x00000020 -- Right
pad.DOWN      = 0x00000040 -- Down
pad.LEFT      = 0x00000080 -- Left
pad.L2        = 0x00000100 -- L2 (PS4)
pad.R2        = 0x00000200 -- R2 (PS4)
pad.L1        = 0x00000400 -- L1
pad.R1        = 0x00000800 -- R1
pad.TRIANGLE  = 0x00001000 -- Triangle
pad.CIRCLE    = 0x00002000 -- Circle
pad.CROSS    = 0x00004000 -- Cross
pad.SQUARE    = 0x00008000 -- Square
pad.SELECT    = 0x00010000 -- Select
pad.START    = 0x00020000 -- Start
 
-- Automap SELECT or START to the Options Button, leaving the full touchar for the opposite, with getEmuObject().PadSetButtonsMode(mode)
-- ie:
-- getEmuObject().PadSetButtonsMode(pad.BUTTONS_MODE_OPTION_IS_SELECT)
 
pad.BUTTONS_MODE_NORMAL = 0 -- Touch bar is split in two for Start/Select. Option is unmapped (default behaviour)
pad.BUTTONS_MODE_OPTION_IS_SELECT = 1 -- Touch bar is Start. Option is Select
pad.BUTTONS_MODE_OPTION_IS_START = 2 -- Touch bar is Select. Option is Start
 
return pad
 
</pre>
 
=Information=
Note: Missing entries
==Folder/File layout==
<pre>
├── assets
│  ├── common
│  └── PSPHD
├── app
│  └── USER_L0.IMG
├── lua_include
│  ├── ax-gpr-alias.lua
│  ├── multiapp.lua
│  ├── sce-locale.lua
│  ├── uv-clamping.lua
│  ├── disc-selection.lua
│  └── pad.lua
├── scripts
│  ├──XXXXYYYYY_patches.lua
│  ├──XXXXYYYYY_features.lua
│  ├──XXXXYYYYY_tooling.lua
│  └──XXXXYYYYY_trophies.lua
├── sce_module
├── sce_sys
├── vms
├── trophy_data
├── usermodule
│  └──libfont.lib
├── sce_discmap.plt
├── eboot.bin
├── revision.conf
├── package-ps4.conf
└── config-title.txt
</pre>
 
==Other==
<pre>
XXXXYYYYY_config.txt
videos/
.mp4
videos/%08x.mp4
audio/%08x.ogg


Paths:  
Paths:  


/app0/
*/app0/
/download0/
*/download0/
/savedata
*/savedata
/host/
*/host/
/hostapp/
*/hostapp/
/data/
*/data/
</pre>


==Sample==
====sample====


<pre>; PS4 configuration file for PSPHD
<pre>; PS4 configuration file for PSPHD
Line 1,597: Line 1,220:
; With this we can freely make use of a normal alpha channel on replacement textures
; With this we can freely make use of a normal alpha channel on replacement textures
--replacementalpha=true
--replacementalpha=true
; This enables bilinear filtering on replaced textures. (uncomment to enable)
--replacementfilter=true
   
   
; Antialiasing mode. SSAA4x looks best, MSAA4x only smooths edges.
; Antialiasing mode. SSAA4x looks best, MSAA4x only smooths edges.
Line 1,610: Line 1,236:
; Parappa Alpha Hack
; Parappa Alpha Hack
--parappaalphahack=true
--parappaalphahack=true
</pre>
==NIDs in HLE==
; Adjust overall volume level (does not include pad speaker volume). Range from 0.0 (min) to 1.0 (max)
<pre>
--volume="0.25"</pre>
|HLEInterruptManager|
 
===NIDs in HLE===
 
=====HLEInterruptManager=====
 
*sceKernelRegisterSubIntrHandler
*sceKernelReleaseSubIntrHandler
*sceKernelEnableSubIntr
 
=====HLEStdioForUser=====


sceKernelRegisterSubIntrHandler
*sceIoOpen
sceKernelReleaseSubIntrHandler
*sceIoClose
sceKernelEnableSubIntr
*sceIoRead
*sceIoWrite
*sceIoLseek
*sceIoLseek32
*sceIoDopen
*sceIoDread
*sceIoDclose
*sceIoChdir
*sceIoGetstat
*sceIoDevctl
*sceIoRename
*sceIoMkDir
*sceIoChstat
*sceIoRemove
*sceIoRmdir
*sceIoOpenAsync
*sceIoReadAsync
*sceIoIoctlAsync
*sceIoWaitAsync
*sceIoWaitAsyncCB
*sceIoCloseAsync
*sceIoSetAsyncCallback
*sceIoPollAsync
*sceIoLseekAsync
*sceIoGetAsyncStat
*asyncWaitTimerCallback
*asyncCallbackTimerCallback
*sceKernelStdin
*sceKernelStdout
*sceKernelStderr


|HLEStdioForUser|
=====HLELoadExecForUser=====


sceIoOpen
*sceKernelCpuSuspendIntr
sceIoClose
*sceKernelCpuResumeIntr
sceIoRead
*sceKernelIsCpuIntrEnable
sceIoWrite
*sceKernelExitGame
sceIoLseek
*sceKernelRegisterExitCallback
sceIoLseek32
*sceKernelLoadModule
sceIoDopen
*sceKernelUnloadModule
sceIoDread
*sceKernelStartModule
sceIoDclose
*sceKernelStopModule
sceIoChdir
*sceKernelStopUnloadSelfModule
sceIoGetstat
*sceKernelGetModuleIdByAddress
sceIoDevctl
*sceKernelStopUnloadSelfModuleWithStatus
sceIoRename
*sceKernelGetModuleId
sceIoMkDir
sceIoChstat
sceIoRemove
sceIoRmdir
sceIoOpenAsync
sceIoReadAsync
sceIoIoctlAsync
sceIoWaitAsync
sceIoWaitAsyncCB
sceIoCloseAsync
sceIoSetAsyncCallback
sceIoPollAsync
sceIoLseekAsync
sceIoGetAsyncStat
asyncWaitTimerCallback
asyncCallbackTimerCallback
sceKernelStdin
sceKernelStdout
sceKernelStderr


|HLELoadExecForUser|
=====HLEsceAtrac3plus=====


sceKernelCpuSuspendIntr
*sceAtracReinit
sceKernelCpuResumeIntr
*sceAtracDecodeData
sceKernelIsCpuIntrEnable
*sceAtracGetNextDecodePosition
sceKernelExitGame
*sceAtracSetHalfwayBufferAndGetID
sceKernelRegisterExitCallback
*sceAtracGetSoundSample
sceKernelLoadModule
*sceAtracGetStreamDataInfo
sceKernelUnloadModule
*sceAtracGetRemainFrame
sceKernelStartModule
*sceAtracSetLoopNum
sceKernelStopModule
*sceAtracResetPlayPosition
sceKernelStopUnloadSelfModule
*sceAtracReleaseAtracID
sceKernelGetModuleIdByAddress
*sceAtracGetAtracID
sceKernelStopUnloadSelfModuleWithStatus
*sceAtracGetNextSample
sceKernelGetModuleId
*sceAtracSetData
*sceAtracAddStreamData


|HLEsceAtrac3plus|
=====HLEsceAudio=====


sceAtracReinit
*sceAudioChReserve
sceAtracDecodeData
*sceAudioChRelease
sceAtracGetNextDecodePosition
*sceAudioOutputBlocking
sceAtracSetHalfwayBufferAndGetID
*sceAudioChangeChannelConfig
sceAtracGetSoundSample
*sceAudioGetChannelRestLength
sceAtracGetStreamDataInfo
*sceAudioChangeChannelVolume
sceAtracGetRemainFrame
*sceAudioSetChannelDataLen
sceAtracSetLoopNum
*sceAudioOutputPanned
sceAtracResetPlayPosition
*sceAudioOutputPannedBlocking
sceAtracReleaseAtracID
*sceAudioGetChannelRestLen
sceAtracGetAtracID
*sceAudioOutput2Reserve
sceAtracGetNextSample
*sceAudioOutput2OutputBlocking
sceAtracSetData
*sceAudioOutput2Release
sceAtracAddStreamData
*outputCallback


|HLEsceAudio|
=====HLEsceCtrl=====


sceAudioChReserve
*sceCtrlSetSamplingCycle
sceAudioChRelease
*sceCtrlSetSamplingMode
sceAudioOutputBlocking
*sceCtrlReadBufferPositive
sceAudioChangeChannelConfig
*sceCtrlReadBufferNegative
sceAudioGetChannelRestLength
*sceCtrlPeekBufferPositive
sceAudioChangeChannelVolume
*sceCtrlPeekBufferNegative
sceAudioSetChannelDataLen
*sceCtrlGetIdleCancelThreshold
sceAudioOutputPanned
*sceCtrlSetIdleCancelThreshold
sceAudioOutputPannedBlocking
*sceCtrlReadLatch
sceAudioGetChannelRestLen
*sceCtrlPeekLatch
sceAudioOutput2Reserve
*sampleControllerCallback
sceAudioOutput2OutputBlocking
*vibrationControllerCallback
sceAudioOutput2Release
outputCallback


|HLEsceCtrl|
=====HLEsceDisplay=====


sceCtrlSetSamplingCycle
*sceDisplaySetMode
sceCtrlSetSamplingMode
*sceDisplaySetFramebuf
sceCtrlReadBufferPositive
*sceDisplayGetFramebuf
sceCtrlReadBufferNegative
*sceDisplayGetVcount
sceCtrlPeekBufferPositive
*sceDisplayWaitVblankStart
sceCtrlPeekBufferNegative
*sceDisplayWaitVblankStartCB
sceCtrlGetIdleCancelThreshold
*sceDisplayGetCurrentHcount
sceCtrlSetIdleCancelThreshold
*sceDisplayGetAccumulatedHcount
sceCtrlReadLatch
*sceDisplayGetFramePerSec
sceCtrlPeekLatch
*sceDisplayWaitVblank
sampleControllerCallback
*sceDisplayWaitVblankCB
vibrationControllerCallback
*sceDisplayIsVblank
*sceDisplaySetHoldMode
*vblankStart
*vblankEnd


|HLEsceDisplay|
=====HLEsceGe_user=====


sceDisplaySetMode
*sceGeEdramGetAddr
sceDisplaySetFramebuf
*sceGeEdramGetSize
sceDisplayGetFramebuf
*sceGeGetCmd
sceDisplayGetVcount
*sceGeGetMtx
sceDisplayWaitVblankStart
*sceGeListEnQueue
sceDisplayWaitVblankStartCB
*sceGeListEnQueueHead
sceDisplayGetCurrentHcount
*sceGeListDeQueue
sceDisplayGetAccumulatedHcount
*sceGeListSync
sceDisplayGetFramePerSec
*sceGeListUpdateStallAddr
sceDisplayWaitVblank
*sceGeDrawSync
sceDisplayWaitVblankCB
*sceGeSetCallback
sceDisplayIsVblank
*sceGeUnsetCallback
sceDisplaySetHoldMode
*sceGeBreak
vblankStart
*sceGeContinue
vblankEnd
*interruptCallback


|HLEsceGe_user|
=====HLEsceImpose=====


sceGeEdramGetAddr
*sceImposeGetLanguageMode
sceGeEdramGetSize
*sceImposeSetLanguageMode
sceGeGetCmd
*sceImposeSetUMDPopup
sceGeGetMtx
sceGeListEnQueue
sceGeListEnQueueHead
sceGeListDeQueue
sceGeListSync
sceGeListUpdateStallAddr
sceGeDrawSync
sceGeSetCallback
sceGeUnsetCallback
sceGeBreak
sceGeContinue
interruptCallback


|HLEsceImpose|
=====HLEsceMpeg=====


sceImposeGetLanguageMode
*sceMpegInit
sceImposeSetLanguageMode
*sceMpegFinish
sceImposeSetUMDPopup
*sceMpegCreate
*sceMpegDelete
*sceMpegQueryMemSize
*sceMpegMallocAvcEsBuf
*sceMpegFreeAvcEsBuf
*sceMpegInitAu
*sceMpegGetAvcAu
*sceMpegGetAtracAu
*sceMpegQueryAtracEsSize
*sceMpegAtracDecode
*sceMpegRingbufferQueryMemSize
*sceMpegRingbufferConstruct
*sceMpegRingbufferDestruct
*sceMpegRingbufferPut
*sceMpegRingbufferAvailableSize
*sceMpegAvcCsc
*sceMpegAvcDecodeMode
*sceMpegAvcDecodeDetail
*sceMpegAvcDecodeFlush
*sceMpegAvcQueryYCbCrSize
*sceMpegAvcInitYCbCr
*sceMpegAvcDecodeYCbCr
*sceMpegAvcDecodeStopYCbCr
*sceMpegRegistStream
*sceMpegUnRegistStream
*sceMpegQueryStreamSize
*sceMpegQueryStreamOffset
*sceMpegFlushAllStream


|HLEsceMpeg|
=====HLEsceNet=====


sceMpegInit
*sceNetInit
sceMpegFinish
*sceNetInetGetsockopt
sceMpegCreate
*sceNetInetSetsockopt
sceMpegDelete
*sceNetInetGetErrno
sceMpegQueryMemSize
sceMpegMallocAvcEsBuf
sceMpegFreeAvcEsBuf
sceMpegInitAu
sceMpegGetAvcAu
sceMpegGetAtracAu
sceMpegQueryAtracEsSize
sceMpegAtracDecode
sceMpegRingbufferQueryMemSize
sceMpegRingbufferConstruct
sceMpegRingbufferDestruct
sceMpegRingbufferPut
sceMpegRingbufferAvailableSize
sceMpegAvcCsc
sceMpegAvcDecodeMode
sceMpegAvcDecodeDetail
sceMpegAvcDecodeFlush
sceMpegAvcQueryYCbCrSize
sceMpegAvcInitYCbCr
sceMpegAvcDecodeYCbCr
sceMpegAvcDecodeStopYCbCr
sceMpegRegistStream
sceMpegUnRegistStream
sceMpegQueryStreamSize
sceMpegQueryStreamOffset
sceMpegFlushAllStream


|HLEsceNet|
=====HLEscePower=====


sceNetInit
*scePowerRegisterCallback
sceNetInetGetsockopt
*scePowerUnregisterCallback
sceNetInetSetsockopt
*scePowerSetClockFrequency
sceNetInetGetErrno
*scePowerSetCpuClockFrequency
*scePowerSetBusClockFrequency


|HLEscePower|
=====HLEscePsmf=====


scePowerRegisterCallback
*scePsmfVerifyPsmf
scePowerUnregisterCallback
*scePsmfSetPsmf
scePowerSetClockFrequency
*scePsmfSpecifyStreamWithStreamTypeNumber
scePowerSetCpuClockFrequency
*scePsmfCheckEPmap
scePowerSetBusClockFrequency
*scePsmfGetVideoInfo
*scePsmfGetNumberOfStreams
*scePsmfGetNumberOfEPentries
*scePsmfGetEPWithId
*scePsmfGetPsmfVersion
*scePsmfGetNumberOfSpecificStreams
*scePsmfSpecifyStream
*scePsmfGetCurrentStreamType


|HLEscePsmf|
=====HLEscePsmfPlayer=====


scePsmfVerifyPsmf
*scePsmfPlayerCreate
scePsmfSetPsmf
*scePsmfPlayerDelete
scePsmfSpecifyStreamWithStreamTypeNumber
*scePsmfPlayerSetPsmf
scePsmfCheckEPmap
*scePsmfPlayerReleasePsmf
scePsmfGetVideoInfo
*scePsmfPlayerStart
scePsmfGetNumberOfStreams
*scePsmfPlayerGetAudioOutSize
scePsmfGetNumberOfEPentries
*scePsmfPlayerStop
scePsmfGetEPWithId
*scePsmfPlayerUpdate
scePsmfGetPsmfVersion
*scePsmfPlayerGetVideoData
scePsmfGetNumberOfSpecificStreams
*scePsmfPlayerGetAudioData
scePsmfSpecifyStream
*scePsmfPlayerGetCurrentStatus
scePsmfGetCurrentStreamType
*scePsmfPlayerGetPsmfInfo
*scePsmfPlayerConfigPlayer
*scePsmfPlayerBreak
*scePsmfPlayerChangePlayMode


|HLEscePsmfPlayer|
=====HLEsceRtc=====


scePsmfPlayerCreate
*sceRtcGetCurrentTick
scePsmfPlayerDelete
*sceRtcGetAccumulativeTime
scePsmfPlayerSetPsmf
*sceRtcGetCurrentClockLocalTime
scePsmfPlayerReleasePsmf
scePsmfPlayerStart
scePsmfPlayerGetAudioOutSize
scePsmfPlayerStop
scePsmfPlayerUpdate
scePsmfPlayerGetVideoData
scePsmfPlayerGetAudioData
scePsmfPlayerGetCurrentStatus
scePsmfPlayerGetPsmfInfo
scePsmfPlayerConfigPlayer
scePsmfPlayerBreak
scePsmfPlayerChangePlayMode


|HLEsceRtc|
=====HLEsceSasCore=====


sceRtcGetCurrentTick
*sceSasInit
sceRtcGetAccumulativeTime
*sceSasCore
sceRtcGetCurrentClockLocalTime
*sceSasCoreWithMix
*sceSasGetEndFlag
*sceSasGetPauseFlag
*sceSasGetEnvelopeHeight
*sceSasGetAllEnvelopeHeights
*sceSasGetOutputMode
*sceSasSetOutputMode
*sceSasGetGrain
*sceSasSetGrain
*sceSasSetVoice
*sceSasSetNoise
*sceSasSetPitch
*sceSasSetVolume
*sceSasSetSimpleADSR
*sceSasSetKeyOn
*sceSasSetKeyOff
*sceSasSetPause
*sceSasSetSL
*sceSasSetADSR
*sceSasSetADSRMode
*sceSasRevEVOL
*sceSasRevType
*sceSasRevParam
*sceSasRevVON


|HLEsceSasCore|
=====HLEsceSuspendForUser=====


sceSasInit
*sceKernelPowerTick
sceSasCore
*sceKernelPowerLock
sceSasCoreWithMix
*sceKernelPowerUnlock
sceSasGetEndFlag
*sceKernelVolatileMemTryLock
sceSasGetPauseFlag
*sceKernelVolatileMemUnlock
sceSasGetEnvelopeHeight
*sceKernelVolatileMemLock
sceSasGetAllEnvelopeHeights
sceSasGetOutputMode
sceSasSetOutputMode
sceSasGetGrain
sceSasSetGrain
sceSasSetVoice
sceSasSetNoise
sceSasSetPitch
sceSasSetVolume
sceSasSetSimpleADSR
sceSasSetKeyOn
sceSasSetKeyOff
sceSasSetPause
sceSasSetSL
sceSasSetADSR
sceSasSetADSRMode
sceSasRevEVOL
sceSasRevType
sceSasRevParam
sceSasRevVON


|HLEsceSuspendForUser|
=====HLEsceUmdUser=====


sceKernelPowerTick
*sceUmdActivate
sceKernelPowerLock
*sceUmdGetDriveStat
sceKernelPowerUnlock
*sceUmdCheckMedium
sceKernelVolatileMemTryLock
*sceUmdRegisterUMDCallback
sceKernelVolatileMemUnlock
*sceUmdUnRegisterUMDCallBack
sceKernelVolatileMemLock
*sceUmdWaitDriveStat
*sceUmdWaitDriveStatWithTimer
*sceUmdWaitDriveStatCB
*sceUmdCancelWaitDriveStat
*_UmdWaitDriveTimeout


|HLEsceUmdUser|
=====HLEsceUtility=====


sceUmdActivate
*sceUtilityLoadModule
sceUmdGetDriveStat
*sceUtilityUnloadModule
sceUmdCheckMedium
*sceUtilityLoadNetModule
sceUmdRegisterUMDCallback
*sceUtilityUnloadNetModule
sceUmdUnRegisterUMDCallBack
*sceUtilityLoadAvModule
sceUmdWaitDriveStat
*sceUtilityUnloadAvModule
sceUmdWaitDriveStatWithTimer
*sceUtilityGetSystemParamInt
sceUmdWaitDriveStatCB
*sceUtilityGetSystemParamString
sceUmdCancelWaitDriveStat
*sceUtilitySavedataGetStatus
_UmdWaitDriveTimeout
*sceUtilitySavedataShutdownStart
*sceUtilitySavedataInitStart
*sceUtilitySavedataUpdate
*sceUtilityMsgDialogGetStatus
*sceUtilityMsgDialogShutdownStart
*sceUtilityMsgDialogInitStart
*sceUtilityMsgDialogUpdate
*sceUtilityMsgDialogAbort
*sceUtilityOskGetStatus
*sceUtilityOskShutdownStart
*sceUtilityOskInitStart
*sceUtilityOskUpdate
*saveDataUpdateCallback
*oskUpdateCallback


|HLEsceUtility|
=====HLEsceWlanDrv=====


sceUtilityLoadModule
*sceWlanGetSwitchState
sceUtilityUnloadModule
*sceWlanGetEtherAddr
sceUtilityLoadNetModule
sceUtilityUnloadNetModule
sceUtilityLoadAvModule
sceUtilityUnloadAvModule
sceUtilityGetSystemParamInt
sceUtilityGetSystemParamString
sceUtilitySavedataGetStatus
sceUtilitySavedataShutdownStart
sceUtilitySavedataInitStart
sceUtilitySavedataUpdate
sceUtilityMsgDialogGetStatus
sceUtilityMsgDialogShutdownStart
sceUtilityMsgDialogInitStart
sceUtilityMsgDialogUpdate
sceUtilityMsgDialogAbort
sceUtilityOskGetStatus
sceUtilityOskShutdownStart
sceUtilityOskInitStart
sceUtilityOskUpdate
saveDataUpdateCallback
oskUpdateCallback


|HLEsceWlanDrv|
=====HLESysMemUserForUser=====


sceWlanGetSwitchState
*sceKernelMaxFreeMemSize
sceWlanGetEtherAddr
*sceKernelTotalFreeMemSize
*sceKernelQueryMemoryInfo
*sceKernelDevkitVersion
*sceKernelPrintf
*sceKernelGetPTRIG
*sceKernelSetPTRIG
*sceKernelAllocPartitionMemory
*sceKernelFreePartitionMemory
*sceKernelGetBlockHeadAddr
*sceKernelGetMemoryBlockAddr
*sceKernelAllocMemoryBlock
*sceKernelFreeMemoryBlock
*sceKernelSetCompilerVersion
*sceKernelGetCompiledSdkVersion
*sceKernelSetCompiledSdkVersion
*sceKernelSetCompiledSdkVersion370
*sceKernelSetCompiledSdkVersion380_390
*sceKernelSetCompiledSdkVersion395
*sceKernelSetCompiledSdkVersion401_402
*sceKernelSetCompiledSdkVersion500_505
*sceKernelSetCompiledSdkVersion507
*sceKernelSetCompiledSdkVersion600_602
*sceKernelSetCompiledSdkVersion603_605
*sceKernelSetCompiledSdkVersion606
*sceKernelSetUsersystemLibWork
*sceKernelSysMemUserForUser_ACBD88CA
*sceKernelSysMemUserForUser_D8DE5C1E
*sceKernelSysMemUserForUser_945E45DA


|HLESysMemUserForUser|
=====HLEThreadManForUser=====


sceKernelMaxFreeMemSize
*sceKernelDelayThread
sceKernelTotalFreeMemSize
*sceKernelDelayThreadCB
sceKernelQueryMemoryInfo
*sceKernelCreateCallback
sceKernelDevkitVersion
*sceKernelDeleteCallback
sceKernelPrintf
*sceKernelSleepThread
sceKernelGetPTRIG
*sceKernelSleepThreadCB
sceKernelSetPTRIG
*sceKernelWakeupThread
sceKernelAllocPartitionMemory
*sceKernelCreateMsgPipe
sceKernelFreePartitionMemory
*sceKernelDeleteMsgPipe
sceKernelGetBlockHeadAddr
*sceKernelSendMsgPipe
sceKernelGetMemoryBlockAddr
*sceKernelTrySendMsgPipe
sceKernelAllocMemoryBlock
*sceKernelReceiveMsgPipe
sceKernelFreeMemoryBlock
*sceKernelTryReceiveMsgPipe
sceKernelSetCompilerVersion
*sceKernelReferMsgPipeStatus
sceKernelGetCompiledSdkVersion
*sceKernelCreateThread
sceKernelSetCompiledSdkVersion
*sceKernelStartThread
sceKernelSetCompiledSdkVersion370
*sceKernelExitThread
sceKernelSetCompiledSdkVersion380_390
*sceKernelDeleteThread
sceKernelSetCompiledSdkVersion395
*sceKernelExitDeleteThread
sceKernelSetCompiledSdkVersion401_402
*sceKernelGetThreadExitStatus
sceKernelSetCompiledSdkVersion500_505
*sceKernelTerminateThread
sceKernelSetCompiledSdkVersion507
*sceKernelTerminateDeleteThread
sceKernelSetCompiledSdkVersion600_602
*sceKernelWaitThreadEnd
sceKernelSetCompiledSdkVersion603_605
*sceKernelWaitThreadEndCB
sceKernelSetCompiledSdkVersion606
*sceKernelRotateThreadReadyQueue
sceKernelSetUsersystemLibWork
*sceKernelReferThreadStatus
sceKernelSysMemUserForUser_ACBD88CA
*sceKernelSuspendDispatchThread
sceKernelSysMemUserForUser_D8DE5C1E
*sceKernelResumeDispatchThread
sceKernelSysMemUserForUser_945E45DA
*sceKernelSuspendThread
*sceKernelResumeThread
*sceKernelCancelWakeupThread
*sceKernelGetThreadStackFreeSize
*sceKernelGetSystemTimeLow
*sceKernelGetSystemTime
*sceKernelGetSystemTimeWide
*sceKernelGetThreadCurrentPriority
*sceKernelChangeCurrentThreadAttr
*sceKernelGetThreadId
*sceKernelChangeThreadPriority
*sceKernelReferThreadProfiler
*sceKernelCheckCallback
*sceKernelCancelSema
*sceKernelCreateSema
*sceKernelDeleteSema
*sceKernelPollSema
*sceKernelSignalSema
*sceKernelReferSemaStatus
*sceKernelWaitSema
*sceKernelWaitSemaCB
*sceKernelCreateFpl
*sceKernelDeleteFpl
*sceKernelAllocateFpl
*sceKernelAllocateFplCB
*sceKernelTryAllocateFpl
*sceKernelFreeFpl
*sceKernelCancelFpl
*sceKernelReferFplStatus
*sceKernelCreateVpl
*sceKernelDeleteVpl
*sceKernelAllocateVpl
*sceKernelAllocateVplCB
*sceKernelTryAllocateVpl
*sceKernelFreeVpl
*sceKernelCancelVpl
*sceKernelReferVplStatus
*sceKernelCreateEventFlag
*sceKernelSetEventFlag
*sceKernelDeleteEventFlag
*sceKernelClearEventFlag
*sceKernelWaitEventFlag
*sceKernelWaitEventFlagCB
*sceKernelPollEventFlag
*sceKernelCancelEventFlag
*sceKernelReferEventFlagStatus
*sceKernelCreateMbx
*sceKernelDeleteMbx
*sceKernelSendMbx
*sceKernelReceiveMbx
*sceKernelReceiveMbxCB
*sceKernelPollMbx
*sceKernelCancelReceiveMbx
*sceKernelReferMbxStatus
*sceKernelCreateMutex
*sceKernelDeleteMutex
*sceKernelLockMutex
*sceKernelLockMutexCB
*sceKernelTryLockMutex
*sceKernelUnlockMutex
*sceKernelCancelMutex
*sceKernelReferMutexStatus
*_sceKernelDelayThreadCallback
*_sceKernelWaitThreadEndTimeout
*_sceKernelAllocateFplTimeout
*_sceKernelAllocateVplTimeout
*_sceKernelWaitEventFlagTimeout
*_sceKernelMsgPipeTimeout
*_sceKernelLockMutexTimeout


|HLEThreadManForUser|
=====HLEUtilsForKernel=====


sceKernelDelayThread
*sceKernelIcacheInvalidateRange
sceKernelDelayThreadCB
sceKernelCreateCallback
sceKernelDeleteCallback
sceKernelSleepThread
sceKernelSleepThreadCB
sceKernelWakeupThread
sceKernelCreateMsgPipe
sceKernelDeleteMsgPipe
sceKernelSendMsgPipe
sceKernelTrySendMsgPipe
sceKernelReceiveMsgPipe
sceKernelTryReceiveMsgPipe
sceKernelReferMsgPipeStatus
sceKernelCreateThread
sceKernelStartThread
sceKernelExitThread
sceKernelDeleteThread
sceKernelExitDeleteThread
sceKernelGetThreadExitStatus
sceKernelTerminateThread
sceKernelTerminateDeleteThread
sceKernelWaitThreadEnd
sceKernelWaitThreadEndCB
sceKernelRotateThreadReadyQueue
sceKernelReferThreadStatus
sceKernelSuspendDispatchThread
sceKernelResumeDispatchThread
sceKernelSuspendThread
sceKernelResumeThread
sceKernelCancelWakeupThread
sceKernelGetThreadStackFreeSize
sceKernelGetSystemTimeLow
sceKernelGetSystemTime
sceKernelGetSystemTimeWide
sceKernelGetThreadCurrentPriority
sceKernelChangeCurrentThreadAttr
sceKernelGetThreadId
sceKernelChangeThreadPriority
sceKernelReferThreadProfiler
sceKernelCheckCallback
sceKernelCancelSema
sceKernelCreateSema
sceKernelDeleteSema
sceKernelPollSema
sceKernelSignalSema
sceKernelReferSemaStatus
sceKernelWaitSema
sceKernelWaitSemaCB
sceKernelCreateFpl
sceKernelDeleteFpl
sceKernelAllocateFpl
sceKernelAllocateFplCB
sceKernelTryAllocateFpl
sceKernelFreeFpl
sceKernelCancelFpl
sceKernelReferFplStatus
sceKernelCreateVpl
sceKernelDeleteVpl
sceKernelAllocateVpl
sceKernelAllocateVplCB
sceKernelTryAllocateVpl
sceKernelFreeVpl
sceKernelCancelVpl
sceKernelReferVplStatus
sceKernelCreateEventFlag
sceKernelSetEventFlag
sceKernelDeleteEventFlag
sceKernelClearEventFlag
sceKernelWaitEventFlag
sceKernelWaitEventFlagCB
sceKernelPollEventFlag
sceKernelCancelEventFlag
sceKernelReferEventFlagStatus
sceKernelCreateMbx
sceKernelDeleteMbx
sceKernelSendMbx
sceKernelReceiveMbx
sceKernelReceiveMbxCB
sceKernelPollMbx
sceKernelCancelReceiveMbx
sceKernelReferMbxStatus
sceKernelCreateMutex
sceKernelDeleteMutex
sceKernelLockMutex
sceKernelLockMutexCB
sceKernelTryLockMutex
sceKernelUnlockMutex
sceKernelCancelMutex
sceKernelReferMutexStatus
_sceKernelDelayThreadCallback
_sceKernelWaitThreadEndTimeout
_sceKernelAllocateFplTimeout
_sceKernelAllocateVplTimeout
_sceKernelWaitEventFlagTimeout
_sceKernelMsgPipeTimeout
_sceKernelLockMutexTimeout


|HLEUtilsForKernel|
=====HLEUtilsForUser=====


sceKernelIcacheInvalidateRange
*sceKernelIcacheInvalidateRange
*sceKernelDcacheInvalidateRange
*sceKernelDcacheWritebackInvalidateRange
*sceKernelDcacheWritebackAll
*sceKernelDcacheWritebackRange
*sceKernelDcacheWritebackInvalidateAll
*sceKernelSetGPO
*sceKernelGetGPI
*sceKernelLibcClock
*sceKernelLibcTime
*sceKernelLibcGettimeofday 0x71EC4271


|HLEUtilsForUser|
===Unimplemented functions===


sceKernelIcacheInvalidateRange
*sceIoChdir() unimplemented, ignoring
sceKernelDcacheInvalidateRange
*sceIoChstat unimplemented, ignoring
sceKernelDcacheWritebackInvalidateRange
*sceKernelExitGame() unimplemented
sceKernelDcacheWritebackAll
*sceKernelStopUnloadSelfModule() unimplemented
sceKernelDcacheWritebackRange
*sceKernelStopUnloadSelfModuleWithStatus() unimplemented
sceKernelDcacheWritebackInvalidateAll
*sceGeGetMtx() unimplemented
sceKernelSetGPO
*sceGeListDeQueue() unimplemented
sceKernelGetGPI
*sceGeBreak unimplemented
sceKernelLibcClock
*sceGeContinue unimplemented
sceKernelLibcTime
*sceNetInetGetsockopt() unimplemented
sceKernelLibcGettimeofday 0x71EC4271
*sceNetInetSetsockopt() unimplemented
</pre>
*sceNetInetGetErrno() unimplemented
*sceWlanGetEtherAddr unimplemented
*sceKernelQueryMemoryInfo() unimplemented
*sceKernelGetPTRIG() unimplemented
*sceKernelSetPTRIG() unimplemented
*sceKernelSetCompiledSdkVersion401_402() unimplemented
*sceKernelSetCompiledSdkVersion507() unimplemented
*sceKernelSetCompiledSdkVersion600_602() unimplemented
*sceKernelSetCompiledSdkVersion603_605() unimplemented
*sceKernelSetUsersystemLibWork() unimplemented
*sceKernelSysMemUserForUser_ACBD88CA() unimplemented
*sceKernelSysMemUserForUser_D8DE5C1E() unimplemented -- sceKernelSafetyCheck0
*sceKernelSysMemUserForUser_945E45DA() unimplemented
*sceKernelTerminateDeleteThread() unimplemented
*sceKernelCancelSema unimplemented
*sceKernelCancelFpl unimplemented
*sceKernelReferFplStatus unimplemented
*sceKernelCancelVpl unimplemented
*sceKernelCreateMbx unimplemented
*sceKernelDeleteMbx unimplemented
*sceKernelSendMbx unimplemented
*sceKernelReceiveMbx unimplemented
*sceKernelReceiveMbxCB unimplemented
*sceKernelPollMbx unimplemented
*sceKernelCancelReceiveMbx unimplemented
*sceKernelReferMbxStatus unimplemented


==Unimplemented functions==
<pre>
sceIoChdir() unimplemented, ignoring
sceIoChstat unimplemented, ignoring
sceKernelExitGame() unimplemented
sceKernelStopUnloadSelfModule() unimplemented
sceKernelStopUnloadSelfModuleWithStatus() unimplemented
sceGeGetMtx() unimplemented
sceGeListDeQueue() unimplemented
sceGeBreak unimplemented
sceGeContinue unimplemented
sceNetInetGetsockopt() unimplemented
sceNetInetSetsockopt() unimplemented
sceNetInetGetErrno() unimplemented
sceWlanGetEtherAddr unimplemented
sceKernelQueryMemoryInfo() unimplemented
sceKernelGetPTRIG() unimplemented
sceKernelSetPTRIG() unimplemented
sceKernelSetCompiledSdkVersion401_402() unimplemented
sceKernelSetCompiledSdkVersion507() unimplemented
sceKernelSetCompiledSdkVersion600_602() unimplemented
sceKernelSetCompiledSdkVersion603_605() unimplemented
sceKernelSetUsersystemLibWork() unimplemented
sceKernelSysMemUserForUser_ACBD88CA() unimplemented
sceKernelSysMemUserForUser_D8DE5C1E() unimplemented -- sceKernelSafetyCheck0
sceKernelSysMemUserForUser_945E45DA() unimplemented
sceKernelTerminateDeleteThread() unimplemented
sceKernelCancelSema unimplemented
sceKernelCancelFpl unimplemented
sceKernelReferFplStatus unimplemented
sceKernelCancelVpl unimplemented
sceKernelCreateMbx unimplemented
sceKernelDeleteMbx unimplemented
sceKernelSendMbx unimplemented
sceKernelReceiveMbx unimplemented
sceKernelReceiveMbxCB unimplemented
sceKernelPollMbx unimplemented
sceKernelCancelReceiveMbx unimplemented
sceKernelReferMbxStatus unimplemented
</pre>


===Partially Supported===
===Partially Supported===
<pre>
'''sceIoIoctl'''
|sceIoIoctl|


supported:
supported:
0x1010005 (UMD file seek set)
* 0x1010005 (UMD file seek set)
0x1020006 (Get UMD file start sector)  
* 0x1020006 (Get UMD file start sector)  


|sceIoDevctl|
'''sceIoDevctl'''


supported:
supported:
0x1F100A4 (Prepare UMD data into cache)
* 0x1F100A4 (Prepare UMD data into cache)
0x2415821 (MScmRegisterMSInsertEjectCallback)
* 0x2415821 (MScmRegisterMSInsertEjectCallback)
0x2415822 (MScmUnregisterMSInsertEjectCallback)
* 0x2415822 (MScmUnregisterMSInsertEjectCallback)
0x2025806 (Check if the device is inserted (mscmhc0))
* 0x2025806 (Check if the device is inserted (mscmhc0))
0x2425823 (Check if FAT enabled)
* 0x2425823 (Check if FAT enabled)
0x2415823 (Set FAT as enabled), supported
* 0x2415823 (Set FAT as enabled), supported
</pre>
 
==Restricted==
<pre>
scePowerRegisterCallback - ignoring
scePowerUnregisterCallback - ignoring
scePowerSetClockFrequency - ignoring
scePowerSetCpuClockFrequency(%d) - ignoring
scePowerSetBusClockFrequency(%d) - ignoring
sceUtilityMsgDialogInitStart ignored
</pre>


===Links===
===Restricted===
* https://forums.ppsspp.org/showthread.php?tid=1473
*scePowerRegisterCallback - ignoring
* https://forums.ppsspp.org/showthread.php?tid=11961
*scePowerUnregisterCallback - ignoring
* https://github.com/LunaMoo/PPSSPP_workarounds/blob/master/cheat.db
*scePowerSetClockFrequency - ignoring
* https://www.psdevwiki.com/ps4/Talk:PSP_Emulator_Compatibility_List#Official_PSPemu_Configuration_Files
*scePowerSetCpuClockFrequency(%d) - ignoring
* https://www.psdevwiki.com/ps4/PSP_Emulator_Compatibility_List
*scePowerSetBusClockFrequency(%d) - ignoring
*sceUtilityMsgDialogInitStart ignored


===More Information:===
===More Information:===
** https://pastebin.com/CXRpVLdd (by [[User:DarkElement]])
* https://gbatemp.net/threads/wip-psp-injection.503103/
* https://gbatemp.net/threads/wip-psp-injection.503103/
* https://twitter.com/zordon605/status/993758941627772929
* https://twitter.com/zordon605/status/993758941627772929
* https://forums.ppsspp.org/showthread.php?tid=22787
* https://forums.ppsspp.org/showthread.php?tid=22787
** https://pastebin.com/CXRpVLdd (by [[User:DarkElement]])
* https://twitter.com/notzecoxao/status/993950722600460296
* https://twitter.com/notzecoxao/status/993950722600460296
* https://twitter.com/ZiL0G80/status/994112249810866176
* https://twitter.com/ZiL0G80/status/994112249810866176
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)