pspdev / psp-packages

https://pspdev.github.io/psp-packages/
The Unlicense
26 stars 14 forks source link

SDL2: Fix SDL2main not working after running psp-fixup-imports #146

Closed sharkwouter closed 5 months ago

sharkwouter commented 5 months ago

Because SDL2 and SDL2main were listed twice in the libraries returned by psp-pkgconf, the psp-fixup-imports command was messing with the order of the SDL2 and SDL2main imports, causing SDL2main to not work. I got a patch merged upstream that fixes this, but there isn't a fixed release available yet, so I decided to just download the patch file from the PR.

sharkwouter commented 5 months ago

The relevant PR can be found here: https://github.com/libsdl-org/SDL/pull/9953

tpimh commented 5 months ago

I really like how clean the sources look with just links to release tarball and the patch generated from a pull request.

tpimh commented 5 months ago

Btw, I just created a separate repo with the SDL2 samples for PSP. For now, I just imported all the samples from here, but I plan on extending them: showing more functions of the library, adding all supported formats of media files, maybe porting to SDL 1.2. This way these samples can be used as a test suite, and will be useful for regression testing.

sharkwouter commented 5 months ago

That's cool, good work

sharkwouter commented 5 months ago

@tpimh we have some SDL2 samples here as well: https://pspdev.github.io/basic_programs.html