parent
ef5cabb704
commit
40d354e5f1
@ -1,2 +1,6 @@
|
||||
# SimpleAccountSwitcher
|
||||
A Simple app to clear out login details and run the sign up app allowing u to switch accounts.
|
||||
# SimpleAccountSwitcher v1.1
|
||||
# By SilicaAndPina
|
||||
|
||||
A Simple app to clear out your PSN login details and run the Sign Up application, allowing you to switch PSN accounts.
|
||||
|
||||
Thanks to CelesteBlue for the v1.1 source code cleanup.
|
@ -0,0 +1,31 @@
|
||||
TITLE_ID = ACCSWITCH
|
||||
TARGET = Simple_Account_Switcher
|
||||
OBJS = main.o
|
||||
|
||||
LIBS = -lSceDisplay_stub -lSceGxm_stub \
|
||||
-lSceSysmodule_stub -lSceCtrl_stub -lScePgf_stub \
|
||||
-lSceCommonDialog_stub -lfreetype -lpng -ljpeg -lz -lm -lc \
|
||||
-lSceReg_stub -lScePower_stub -lSceAppMgr_stub
|
||||
|
||||
PREFIX = arm-vita-eabi
|
||||
CC = $(PREFIX)-gcc
|
||||
CFLAGS = -Wl,-q -Wall -O3 -std=c99
|
||||
ASFLAGS = $(CFLAGS)
|
||||
|
||||
all: $(TARGET).vpk
|
||||
|
||||
%.vpk: eboot.bin
|
||||
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "Simple Account Switcher" sce_sys/param.sfo
|
||||
vita-pack-vpk -s sce_sys/param.sfo -b eboot.bin -a sce_sys/icon0.png=sce_sys/icon0.png -a sce_sys/livearea/contents/bg.png=sce_sys/livearea/contents/bg.png -a sce_sys/livearea/contents/template.xml=sce_sys/livearea/contents/template.xml $@
|
||||
|
||||
eboot.bin: $(TARGET).velf
|
||||
vita-make-fself $< eboot.bin
|
||||
|
||||
%.velf: %.elf
|
||||
vita-elf-create $< $@
|
||||
|
||||
%.elf: $(OBJS)
|
||||
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
|
||||
|
||||
clean:
|
||||
@rm -rf *.velf *.elf *.vpk $(OBJS) sce_sys/param.sfo eboot.bin
|
@ -1,22 +1,28 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <psp2/appmgr.h>
|
||||
#include <psp2/apputil.h>
|
||||
#include <psp2/types.h>
|
||||
#include <psp2/kernel/processmgr.h>
|
||||
#include <psp2/message_dialog.h>
|
||||
#include <psp2/display.h>
|
||||
#include <vita2d.h>
|
||||
#include <stdlib.h>
|
||||
#include <psp2/ctrl.h>
|
||||
|
||||
int main(void) {
|
||||
while (1)
|
||||
{
|
||||
sceRegMgrSetKeyStr("/CONFIG/NP/","login_id","",1);
|
||||
sceRegMgrSetKeyStr("/CONFIG/NP/","password","",1);
|
||||
sceIoRemove("ux0:/id.dat");
|
||||
sceAppMgrLaunchAppByUri(0xFFFFF, "psnreg:");
|
||||
}
|
||||
}
|
||||
#include <psp2/power.h>
|
||||
#include <psp2/io/fcntl.h>
|
||||
#include <psp2/kernel/processmgr.h>
|
||||
#include <psp2/kernel/threadmgr.h>
|
||||
#include <psp2/appmgr.h>
|
||||
#include <psp2/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int sceRegMgrSetKeyInt(const char*, const char*, int);
|
||||
int sceRegMgrSetKeyStr(const char*, const char*, const char*, int);
|
||||
|
||||
int executeUriExit(char *uritext) {
|
||||
while(1) {
|
||||
sceAppMgrLaunchAppByUri(0x20000, uritext);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
sceRegMgrSetKeyStr("/CONFIG/NP", "login_id", (char[]){0x0}, 1);
|
||||
sceRegMgrSetKeyStr("/CONFIG/NP", "password", (char[]){0x0}, 1);
|
||||
sceIoRemove("ux0:/id.dat");
|
||||
executeUriExit("psnreg:");
|
||||
sceKernelExitProcess(0);
|
||||
return 0;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 936 B |
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<livearea style="a1" format-ver="01.00" content-rev="1">
|
||||
<livearea-background>
|
||||
<image>bg.png</image>
|
||||
</livearea-background>
|
||||
</livearea>
|
Loading…
Reference in New Issue