Error code :8002013C
this is Makefile:
Code: Select all
PSPSDK=$(shell psp-config --pspsdk-path)
PSPLIBSDIR=$(PSPSDK)/..
TARGET = Demo
OBJS = main.o gui.o error.o EXTERN/freemem.o EXTERN/graphics.o EXTERN/framebuffer.o
BUILD_PRX = 1
PSP_FW_VERSION=500
CFLAGS = -G0 -w -O2 -D_DEBUG_LOG
CXXFLAGS = $(CFLAGS) -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS =
LIBS = -lpspgum -lpspgu -lpng -lz -lm -lpsppower -lstdc++
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Demo
PSP_EBOOT_ICON = ICON0.PNG
PSP_EBOOT_PIC1 = PIC1.PNG
PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
include $(PSPSDK)/lib/build.mak
Code: Select all
#include "main.h"
PSP_MODULE_INFO("YouRlayer", 0, 1, 0);
PSP_MAIN_THREAD_ATTR(0);
//PSP_HEAP_SIZE_KB(16 * 1024);
PSP_HEAP_SIZE_MAX();
/*************/
/* Globals */
/*************/
extern unsigned selection_Status=0;
//0:menu; 1:play;
extern unsigned selection_selector=1;
//1:play; 2:music library; 3:visual; 4:EQ;...9:quit
extern unsigned selection_selector_bakup=0;
extern unsigned kindOfMusic=1;
//1:ATRAC; 2:MP3; 3:FLAC
extern unsigned play_status=0;
//0:stop; 1:playing; 2:pause;
extern unsigned play_load=0;
//extern Conf *config;
/******************************************************************************************/
/******************************************************************************************/
int Exit=1;
SceCtrlData pad;
int oldpad;
/******************************************************************************************/
/******************************************************************************************/
/* Power callback */
static int exit_callback(int arg1, int arg2, void *common){
sceKernelExitGame();
return 0;
}
int CallbackThread(SceSize args, void *argp){
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallback(cbid);
return 0;
}
/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void){
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, THREAD_ATTR_USER, 0);
if(thid >= 0)
{
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
/******************************************************************************************/
/******************************************************************************************/
void ctrl_menu(int * quit){
sceCtrlPeekBufferPositive(&pad,1);
if(pad.Buttons!=oldpad){
if(pad.Buttons&PSP_CTRL_LEFT)
selection_selector-=3;
if(pad.Buttons&PSP_CTRL_RIGHT)
selection_selector+=3;
if(pad.Buttons&PSP_CTRL_CIRCLE){
switch(selection_selector){
case 1:
selection_Status=1;
break;
case 2:
selection_Status=2;
break;
case 3:
selection_Status=3;
break;
case 4:
selection_Status=4;
break;
case 5:
selection_Status=5;
break;
case 6:
selection_Status=6;
break;
case 7:
selection_Status=7;
break;
case 8:
selection_Status=8;
break;
case 9:
selection_Status=9;
Exit=0;
}
*quit=0;
}
}
if(selection_selector>9)selection_selector=1;
if(selection_selector<1)selection_selector=9;
oldpad=pad.Buttons;
}
void ctrl_playing(int *quit){
sceCtrlPeekBufferPositive(&pad,1);
if(pad.Buttons!=oldpad){
if(pad.Buttons&PSP_CTRL_CROSS)
*quit=0;
if(pad.Buttons&PSP_CTRL_START)
/*Play_PP()*/;
if(pad.Buttons&PSP_CTRL_SQUARE){
/*Music_Stop()*/;
play_status=0;
}
if(pad.Buttons&PSP_CTRL_TRIANGLE);
if(pad.Buttons&PSP_CTRL_SELECT);
if(pad.Buttons&PSP_CTRL_LTRIGGER)
/*Play_Next()*/;
if(pad.Buttons&PSP_CTRL_RTRIGGER)
/*Play_PREW()*/;
}
if(pad.Buttons&PSP_CTRL_LEFT)
/*Music_SetPos(Music_GetPos()+5000000)*/;
if(pad.Buttons&PSP_CTRL_RIGHT)
/*Music_SetPos(Music_GetPos()-5000000)*/;
oldpad=pad.Buttons;
}
void playing(){
load_playing_images();
int *quit=1;
while(*quit){
ctrl_playing(quit);
gui_playing();
}
gui_freeImagePlaying();
}
void menu(){
load_menu_images();
int *quit=1;
while(*quit){
ctrl_menu(quit);
gui_menu();
}
gui_freeImageMenu();
}
main(){
gui_init();
SetupCallbacks();
//pspDebugInstallErrorHandler(errorHandler);
while(Exit){
switch(selection_Status){
case 0:
menu();
break;
case 1:
playing();
break;
}
}
gui_freeImageCommon();
gui_distroyFonts();
sceKernelExitGame();
}