Decompile and name a few main_psp functions#3126
Merged
JoshSchreuder merged 2 commits intoXeeynamo:masterfrom Feb 12, 2026
Merged
Decompile and name a few main_psp functions#3126JoshSchreuder merged 2 commits intoXeeynamo:masterfrom
main_psp functions#3126JoshSchreuder merged 2 commits intoXeeynamo:masterfrom
Conversation
gamezter
commented
Feb 11, 2026
src/main_psp/138B0.c
Outdated
Comment on lines
555
to
601
| s32 func_psp_08913B48(t_displayBuffer* pDisp, s32 arg1) { | ||
| if (arg1 & PadReadPSP()) { | ||
| D_psp_08B1FB84 = 1; | ||
| s32 pad_read(t_displayBuffer* pDisp, s32 restartButton) { | ||
| if (restartButton & PadReadPSP()) { | ||
| playMode = PLAY_RESTART; |
Collaborator
Author
There was a problem hiding this comment.
I'm not actually sure if the restartButton (which is determined in func_psp_090FFAB8) actually restarts the video... This is based off similar code in the PSP SDK
Collaborator
Author
There was a problem hiding this comment.
EDIT: I tested in an emulator and start skips the intro video, so I renamed all instances to skipButton
gamezter
commented
Feb 11, 2026
| ScePspFVector4* sceVfpuVector4NormalizeXYZ( | ||
| ScePspFVector4* pv0, const ScePspFVector4* pv1); | ||
|
|
||
| s32 MapJoystickToButtons(u8 x, u8 y) { |
Collaborator
Author
There was a problem hiding this comment.
AFAIK this is the only place that uses a sceVfpuVector4... function. It is an over-engineered way to map the joystick to D-pad buttons that uses floating point math
sozud
approved these changes
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.