Source code:
Code: Select all
#include <pspkernel.h>
#include <pspctrl.h>
#include <stdio.h>
#include <stdlib.h>
#include <pspkerror.h>
PSP_MODULE_INFO("Shutdown", 0x800, 1, 0);
int main (int argc, char **argv) //(int argc, char* argv[])
{
pspDebugScreenInit();
while(0x80020143 == sceKernelSelfStopUnloadModule(1, 0, NULL))
{
pspDebugScreenSetXY(1,1);
pspDebugScreenPrintf("%s", "busy!");
sceKernelDelayThread(10000);
}
return 0;
}
Code: Select all
TARGET = update_plugin
OBJS = main.o
BUILD_PRX=1
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak