Is there any no-kernel function to get the current directory where the eboot.pbp (my homebrew) has started?
I want to launch another PBP from my homebrew but I have to pass it the full path of the second homebrew otherwise i get the 8002013C error...
So I wish to get current directory where both PBPs are ;)
Thanks to all ^__^
Get current directory
Maybe you already did it, but keep searching for "getcwd".
Code: Select all
#include <string.h>
#include <sys/types.h>
#include <sys/unistd.h> // for getcwd()
.
.
.
char fullName[256];
getcwd(fullName,200);
strcat(fullName,filename);
nope....my little sample compiles fine with this makefile
Maybe yours is a compiler/sdk issue ??TARGET = pspgpslim236
OBJS = main.o ../commons/callbacks.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
BUILD_PRX = 1
PSP_FW_VERSION=390
LIBDIR =
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = littleSample
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
LIBS += -lpsphprm_driver -lpsprtc -lpspvfpu