Editing PS1 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 124: Line 124:
|}
|}


====Emulator commands====
====Emulator Commands====
{| 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 !! Usage !! Example !! Notes
! Command !! Usage !! Notes
|-
|-
|PadRead || EM_PadRead() || ||Return pad state (pushed buttons).
|PadRead || EM_PadRead() || Return pad state (pushed buttons).
|-
|-
|PadReadLeftStick || EM_PadReadLeftStick() || ||Return pad left stick state.
|PadReadLeftStick || EM_PadReadLeftStick() || Return pad left stick state.
|-
|-
|PadReadRightStick || EM_PadReadRightStick() || ||Return pad right stick state.
|PadReadRightStick || EM_PadReadRightStick() || Return pad right stick state.
|-
|-
|PadSetButtonsMode || EM_PadSetButtonMode(value) || ||Set some pad mode, in one of official configs described as "switch Select/Start -> Touchpad/Options mode" with used value 2.
|PadSetButtonsMode || EM_PadSetButtonMode(value) || Set some pad mode, in one of official configs described as "switch Select/Start -> Touchpad/Options mode" with used value 2.
|-
|-
|AddVsyncHook || EM_AddVsyncHook(anything) || ||Add hook that trigger on every vsync, param usually will be previously prepared function.  
|AddVsyncHook || EM_AddVsyncHook(anything) || Add hook that trigger on every vsync, param usually will be previously prepared function.  
|-
|-
|RemoveVsyncHook|| EM_RemoveVsyncHook()|| ||Remove hook that trigger on every vsync.
|RemoveVsyncHook|| EM_RemoveVsyncHook()|| Remove hook that trigger on every vsync.
|-
|-
|ThrottleMax || EM_ThrottleMax() || ||Remove framelimiter, used frequently for loadings.
|ThrottleMax || EM_ThrottleMax() || Remove framelimiter, used frequently for loadings.
|-
|-
|ThrottleNormal || EM_ThrottleNormal() || ||Set framelimiter to default game value.
|ThrottleNormal || EM_ThrottleNormal() || Set framelimiter to default game value.
|-
|-
|Log || EM_Log(value) || ||Print debug messages to usermode console, ex. emu.Log(string.format("Overlay: %02x", overlay)).
|Log || EM_Log(value) || Print debug messages to usermode console, ex. emu.Log(string.format("Overlay: %02x", overlay)).
|-
|-
|GetNativeLanguage|| EM_GetNativeLanguage() || ||Return used PS4 language.
|GetNativeLanguage|| EM_GetNativeLanguage() || Return used PS4 language.
|-
|-
|LoadConfig||EM_LoadConfig() || ||
|LoadConfig||EM_LoadConfig() ||
|-
|-
|SaveConfig||EM_SaveConfig() || ||
|SaveConfig||EM_SaveConfig() ||
|-
|-
|LoadState|| EM_LoadState()|| ||Load savestate, seems to be disabled in Medievil emu.
|LoadState|| EM_LoadState()|| Load savestate, seems to be disabled in Medievil emu.
|-
|-
|SaveState||EM_SaveState() || ||Save savestate, seems to be disabled in Medievil emu.
|SaveState||EM_SaveState() || Save savestate, seems to be disabled in Medievil emu.
|-
|-
|PostEffect|| EM_PostEffect() || ||
|PostEffect|| EM_PostEffect() ||
|-
|-
|PostEffectParams|| EM_PostEffectParams()|| ||
|PostEffectParams|| EM_PostEffectParams()||
|-
|-
|NeoMode|| EM_NeoMode() || || Return 1 if PS4 PRO, 0 otherwise.
|NeoMode|| EM_NeoMode() || Return 1 if PS4 PRO, 0 otherwise.
|-
|-
|CRC32 || || ||
|CRC32 || ||
|-
|-
|AddFBMapping|| EM_AddFBMapping( , , , ) || || Add framebffer mapping, in Medievil used with EM_AddFBMapping(768, 256, 180, 256) values.
|AddFBMapping|| EM_AddFBMapping( , , , ) || Add framebffer mapping, in Medievil used with EM_AddFBMapping(768, 256, 180, 256) values.
|-
|-
|RemoveFBMapping|| EM_RemoveFBMapping( , ) || || Remove framebffer mapping, in Medievil used with EM_RemoveFBMapping(768, 256) values.
|RemoveFBMapping|| EM_RemoveFBMapping( , ) || Remove framebffer mapping, in Medievil used with EM_RemoveFBMapping(768, 256) values.
|-
|-
|Launch || EM_Launch("path") || || Emulator is able to launch selfs in own sandbox, require full path (for example "/app0/folder/my_self.bin"), can be used for multidisc games.
|Launch || EM_Launch("path") || Emulator is able to launch selfs in own sandbox, require full path (for example "/app0/folder/my_self.bin"), can be used for multidisc games.
|-
|-
|}
|}
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)