Greetings,
How do you run an SDL game on the Slim? It ran fine on my Fat... I found this:
http://forums.ps2dev.org/viewtopic.php? ... d3ad90e549
but it says to disable SDL_main, does that mean I can't use SDL? If not, how do I do that?
Thanks in advance,
SDL on Slim?
Re: SDL on Slim?
YOu have to unlink sdlmain from your cflags, i found it easier to edit sdl-config and make two new lines for libs / cflags and remove the SDL_Main bit and replace it with --nomainLeo28C wrote:Greetings,
How do you run an SDL game on the Slim? It ran fine on my Fat... I found this:
http://forums.ps2dev.org/viewtopic.php? ... d3ad90e549
but it says to disable SDL_main, does that mean I can't use SDL? If not, how do I do that?
Thanks in advance,
Code: Select all
SDL_FLAGS = $(shell $(PSPBIN)/sdl-config --cflags)
CFLAGS += $(shell echo $(SDL_FLAGS) | sed -re s/-Dmain=\\S+//) #Remove main redefinition
SDL_LIBS = $(shell $(PSPBIN)/sdl-config --libs)
LIBS += $(shell echo $(SDL_LIBS) | sed -e s/-lSDLmain//) #Remove SDLmain from libs
Code: Select all
CFLAGS += $(shell $(PSPBIN)/sdl-config --libs --cflags)
You'll also need your own version of some of the stuff that SDLmain provides, e.g. PSP_MODULE_INFO and setting up the home callback.