anyway, for those of you who DO know something about it;
I need some help.
I wrote the following program (I know, it's rediculously simple program, but im just trying to make it work on psp)(Oh and I didnt really completely write it myself...)
main.c
#include <pspkernel.h>#include <pspdebug.h>#include <pspdisplay.h>#include <pspctrl.h>#include <SDL.h>#define printf pspDebugScreenPrintfint main(int argc, char* args[]){ //The images SDL_Surface* hello =NULL; SDL_Surface* screen = NULL; //Start SDL SDL_Init( SDL_INIT_EVERYTHING ); //Set up screen screen = SDL_SetVideoMode( 480, 272, 24, SDL_SWSURFACE ); //Load image hello = SDL_LoadBMP( "hello.bmp" ); //Apply image to screen SDL_BlitSurface( hello, NULL, screen, NULL ); //Update Screen SDL_Flip( screen ); //Pause SDL_Delay( 2000 ); SDL_FreeSurface( hello ); SDL_Quit();return 0;}
Makefile
TARGET = testOBJS = main.oCFLAGS = -O2 -G0 -WallCXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rttiASFLAGS = $(CFLAGS)LIBDIR =LIBS = -lSDLmain -SDLmainLDFLAGS =EXTRA_TARGETS = EBOOT.PBPPSP_EBOOT_TITLE = testPSPSDK=$(shell psp-config --pspsdk-path)PSPBIN = $(PSPSDK)/../binPSPBIN = $(PSPSDK)/../binCFLAGS += $(shell $(PSPBIN)/sdl-config --cflags)LIBS += $(shell $(PSPBIN)/sdl-config --libs)include $(PSPSDK)/lib/build.mak
I compile main.c, it completes without errors.
Then I make a folder in my psp under PSP/GAME and just dump all the files in there, the EBOOT.PBP, hello.bmp, Makefile (even though it's useless now)
When I start the game on my psp, It flashes 2 short lines of text for WAY too short to identify what it says, the screen stays black and after about 10 seconds my psp turns off.
Any ideas? I'd be very grateful.
[Edited by - Poitertjuh on September 26, 2010 7:15:24 AM]