I've got a weird problem when I try to add "BUILD_PRX = 1" in my makefile.
When I add this line, my program can't access file on disk, when it try to open a file, it return NULL.
but without BUILD_PRX = 1, everything work fine
I really don't understand why it wouldn't work
this is my makefile :
Code: Select all
TARGET = 3dtest
OBJS = main.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS= -lpspgum -lpspgu -lm
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = 3D Test
BUILD_PRX = 1
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
I use this :
Code: Select all
PSP_MODULE_INFO("3D Test", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
and I acces file this way :
Code: Select all
FILE * fi1;
fi1 = fopen ( nomobj , "rb" );