Editing PS1 Emulation
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 124: | Line 124: | ||
|} | |} | ||
====Emulator | ====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 | ! Command !! Usage !! Notes | ||
|- | |- | ||
|PadRead || EM_PadRead() | |PadRead || EM_PadRead() || Return pad state (pushed buttons). | ||
|- | |- | ||
|PadReadLeftStick || EM_PadReadLeftStick() | |PadReadLeftStick || EM_PadReadLeftStick() || Return pad left stick state. | ||
|- | |- | ||
|PadReadRightStick || EM_PadReadRightStick() | |PadReadRightStick || EM_PadReadRightStick() || Return pad right stick state. | ||
|- | |- | ||
|PadSetButtonsMode || EM_PadSetButtonMode(value) | |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) | |AddVsyncHook || EM_AddVsyncHook(anything) || Add hook that trigger on every vsync, param usually will be previously prepared function. | ||
|- | |- | ||
|RemoveVsyncHook|| EM_RemoveVsyncHook() | |RemoveVsyncHook|| EM_RemoveVsyncHook()|| Remove hook that trigger on every vsync. | ||
|- | |- | ||
|ThrottleMax || EM_ThrottleMax() | |ThrottleMax || EM_ThrottleMax() || Remove framelimiter, used frequently for loadings. | ||
|- | |- | ||
|ThrottleNormal || EM_ThrottleNormal() | |ThrottleNormal || EM_ThrottleNormal() || Set framelimiter to default game value. | ||
|- | |- | ||
|Log || EM_Log(value) | |Log || EM_Log(value) || Print debug messages to usermode console, ex. emu.Log(string.format("Overlay: %02x", overlay)). | ||
|- | |- | ||
|GetNativeLanguage|| EM_GetNativeLanguage() | |GetNativeLanguage|| EM_GetNativeLanguage() || Return used PS4 language. | ||
|- | |- | ||
|LoadConfig||EM_LoadConfig() | |LoadConfig||EM_LoadConfig() || | ||
|- | |- | ||
|SaveConfig||EM_SaveConfig() | |SaveConfig||EM_SaveConfig() || | ||
|- | |- | ||
|LoadState|| EM_LoadState() | |LoadState|| EM_LoadState()|| Load savestate, seems to be disabled in Medievil emu. | ||
|- | |- | ||
|SaveState||EM_SaveState() | |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() | |NeoMode|| EM_NeoMode() || Return 1 if PS4 PRO, 0 otherwise. | ||
|- | |- | ||
|CRC32 | |CRC32 || || | ||
|- | |- | ||
|AddFBMapping|| EM_AddFBMapping( , , , ) | |AddFBMapping|| EM_AddFBMapping( , , , ) || Add framebffer mapping, in Medievil used with EM_AddFBMapping(768, 256, 180, 256) values. | ||
|- | |- | ||
|RemoveFBMapping|| EM_RemoveFBMapping( , ) | |RemoveFBMapping|| EM_RemoveFBMapping( , ) || Remove framebffer mapping, in Medievil used with EM_RemoveFBMapping(768, 256) values. | ||
|- | |- | ||
|Launch || EM_Launch("path") | |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. | ||
|- | |- | ||
|} | |} |