Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Jul 13, 2023
1 parent c38cac6 commit 72f3f7b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
17 changes: 13 additions & 4 deletions core/compat/vitapops/syspatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ static int isSystemBooted(void)
void patchVitaPopsDisplay(SceModule2* mod){
u32 display_func = sctrlHENFindFunction("sceDisplay_Service", "sceDisplay_driver", 0x3E17FE8D);
if (display_func){
// protect vita pops vram
sceKernelAllocPartitionMemory(6, "POPS VRAM CONFIG", PSP_SMEM_Addr, 0x1B0, (void *)0x09FE0000);
sceKernelAllocPartitionMemory(6, "POPS VRAM", PSP_SMEM_Addr, 0x3C0000, (void *)0x090C0000);
//if (sceKernelInitApitype() != 0x144){
// protect vita pops vram
sceKernelAllocPartitionMemory(6, "POPS VRAM CONFIG", PSP_SMEM_Addr, 0x1B0, (void *)0x09FE0000);
sceKernelAllocPartitionMemory(6, "POPS VRAM", PSP_SMEM_Addr, 0x3C0000, (void *)0x090C0000);
//}
memset((void *)0x49FE0000, 0, 0x1B0);
memset((void *)0x490C0000, 0, 0x3C0000);
// register default screen handler
Expand Down Expand Up @@ -114,6 +116,7 @@ int sceKernelResumeThreadPatched(SceUID thid) {
if (draw_thread >= 0){
do_draw = 0;
sceKernelWaitThreadEnd(draw_thread, NULL);
sceKernelDeleteThread(draw_thread);
draw_thread = -1;
}
}
Expand Down Expand Up @@ -341,7 +344,6 @@ void ARKVitaPopsOnModuleStart(SceModule2 * mod){

if (strcmp(mod->modname, "scePops_Manager") == 0){
patchPopsMan(mod);
hookImportByNID(mod, "sceKermit_driver",0x36666181, kermitSendRequestLog);
goto flush;
}

Expand Down Expand Up @@ -419,6 +421,13 @@ int StartModuleHandler(int modid, SceSize argsize, void * argp, int * modstatus,

SceModule2* mod = (SceModule2*) sceKernelFindModuleByUID(modid);

/*
int fd = sceIoOpen("ms0:/vitapops.log", PSP_O_WRONLY|PSP_O_APPEND|PSP_O_CREAT, 0777);
sceIoWrite(fd, mod->modname, strlen(mod->modname));
sceIoWrite(fd, "\n", 1);
sceIoClose(fd);
*/

if (DisplaySetFrameBuf){
static int screen_init = 0;
if (!screen_init){
Expand Down
1 change: 0 additions & 1 deletion core/popcorn/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,6 @@ int module_start(SceSize args, void* argp)
#ifdef DEBUG
printk("pops disc id: %s\r\n", g_DiscID);
#endif

g_pspFwVersion = sceKernelDevkitVersion();

getKeys();
Expand Down
2 changes: 2 additions & 0 deletions extras/menus/xMenu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ int main(int argc, char** argv){
disableGraphics();

sceKernelExitGame();

return 0;
}

0 comments on commit 72f3f7b

Please sign in to comment.