Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fjtrujy
Copy link
Member

@fjtrujy fjtrujy commented Jun 20, 2025

Description

This PR improves the function definition of sceGuSignal and sceGuCallMode, having now better-named parameters and a better description too.
Additionally, I have fixed the usage in the examples that PSPSDK has.

@fjtrujy fjtrujy requested a review from sharkwouter June 20, 2025 14:31
if (gu_call_mode == GU_CALL_SIGNAL)
{
sendCommandi(SIGNAL, (list_addr >> 16) | 0x110000);
sendCommandi(SIGNAL, (0x11 << 16) | (list_addr >> 16));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the old syntax (list_addr >> 16) | 0x110000 as it's clearer to me, but it's probably just my personal preference.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here… 0x11 is an specific command

if (gu_call_mode == GU_CALL_SIGNAL)
{
sendCommandi(SIGNAL, 0x120000);
sendCommandi(SIGNAL, 0x12 << 16);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, I'd keep 0x120000 (personal preference)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason why I split it is because 0x12 is actually part of a GE command when SIGNAL CMD is used.

@fjtrujy fjtrujy merged commit 13d1faa into pspdev:master Jun 23, 2025
1 check passed
@fjtrujy fjtrujy deleted the fix_sceguSignal branch June 23, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants