Conversation
| LIBPNG_CFLAGS = | ||
| LIBPNG_LDFLAGS = -lpng16 | ||
|
|
||
| MIKMOD_CFLAGS = |
There was a problem hiding this comment.
Left this in as the default installation of ps2sdk includes MikMod; this allows supporting MikMod builds.
| if [ "$PLATFORM" = "ps2" ]; then | ||
| echo "Enabling PS2-specific hacks." | ||
| echo "#define CONFIG_PS2" >> src/config.h | ||
| echo "BUILD_PS2=1" >> platform.inc | ||
|
|
||
| echo "Force-disabling stack protector on PS2." | ||
| STACK_PROTECTOR="false" | ||
| fi | ||
|
|
There was a problem hiding this comment.
Adding some notes here since this part of config.sh (finally) got cleaned up a little bit.
This is a case statement now; drop the leading comment (I removed these from the other platforms too), replace if [ "$PLATFORM" = "ps2" ]; then with "ps2"), replace fi with ;;, use PSP as a template for copying the new force-disablements, and you should be good to go here.
| # Force-disable OpenGL and overlay renderers on PS2, PSP, GP2X, 3DS, NDS and Wii | ||
| # | ||
| if [ "$PLATFORM" = "psp" ] || | ||
| if [ "$PLATFORM" = "ps2" ] || | ||
| [ "$PLATFORM" = "psp" ] || |
| [ "$PLATFORM" = "switch" ] || | ||
| [ "$PLATFORM" = "android" ] || | ||
| [ "$PLATFORM" = "emscripten" ] || | ||
| [ "$PLATFORM" = "ps2" ] || |
| [ "$PLATFORM" = "darwin-devel" ] || | ||
| [ "$PLATFORM" = "darwin-dist" ] || | ||
| [ "$PLATFORM" = "gp2x" ] || | ||
| [ "$PLATFORM" = "ps2" ] || |
| [[ -z $PS2DEV ]] && { echo "\$PS2DEV is unset. Aborting"; exit 1; } | ||
|
|
||
| ./config.sh --platform ps2 --prefix $PS2DEV/ps2sdk/ee --optimize-size \ |
There was a problem hiding this comment.
(Also, would recommend wrapping $PS2DEV in quotes in both instances here and in the Makefile fragment, just in case.)
|
I'm not sure if it's relevant to the PS2, but linking it anyway: reading volume lists is now generalized as of #586. |
Almost too easy, though it did need a fix in the PS2 SDL2 port.
USB keyboards are unfortunately not supported by the SDL2 port, at least not yet :(