Skip to content

Draft: Add PSP port - #18

Draft
trulio2 wants to merge 11 commits into
masterfrom
feature/pspPort
Draft

Draft: Add PSP port#18
trulio2 wants to merge 11 commits into
masterfrom
feature/pspPort

Conversation

@trulio2

@trulio2 trulio2 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator
out.mp4

PSPDEV C++ portability

PSPDEV may define std::int32_t as long, while literals and many PSP APIs
use int. Keep mixed-type calls explicit:

const auto clamped = std::clamp<std::int32_t>(value, 0, upper);
sceGuSomething(static_cast<int>(clamped));  // Only after range validation.

For formatted std::int32_t values, include <cinttypes> and use PRId32
instead of %d:

std::fprintf(stderr, "value=%" PRId32 "\n", value);

@trulio2 trulio2 changed the title Draft: Add PSP port Add PSP port Aug 3, 2026
@trulio2
trulio2 marked this pull request as ready for review August 3, 2026 13:52
@trulio2 trulio2 changed the title Add PSP port Draft: Add PSP port Aug 3, 2026
@trulio2
trulio2 marked this pull request as draft August 3, 2026 14:23
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.

1 participant