X Tutup
Skip to content

PSP2: Remove psp2shell dependency#6763

Merged
bluegr merged 2 commits intoscummvm:masterfrom
Aztorius:fix-psp2-debug
Jun 22, 2025
Merged

PSP2: Remove psp2shell dependency#6763
bluegr merged 2 commits intoscummvm:masterfrom
Aztorius:fix-psp2-debug

Conversation

@Aztorius
Copy link
Contributor

psp2shell as a dependency is not needed for debug.
In fact, it does not even work with current code.
We simply need to remove it and use sceClibPrintf.
This standard function will send debug messages to psp2shell if it is installed on the console.

Tested and working for me.

psp2shell as a dependency is not needed for debug. In fact, it does not
even work with current code. We simply need to remove it and use
sceClibPrintf. This standard function will send debug messages to
psp2shell if it is installed on the console.
@lephilousophe lephilousophe requested a review from rsn8887 June 21, 2025 19:47
void OSystem_PSP2::logMessage(LogMessageType::Type type, const char *message) {
#if __PSP2_DEBUG__
psp2shell_print(message);
sceClibPrintf(message);
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to remove the __PSP2_DEBUG__ check now that a separate library is no longer required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I just pushed another commit that completely removes PSP2_DEBUG as it is not used anymore + adds error logging to file as it was not working.

@rsn8887
Copy link
Contributor

rsn8887 commented Jun 22, 2025

Thanks, it looks good to me!

@bluegr
Copy link
Member

bluegr commented Jun 22, 2025

Thank you!

@bluegr bluegr merged commit 9ddf7ef into scummvm:master Jun 22, 2025
5 of 8 checks passed
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.

4 participants

X Tutup