Skip to content

Commit

Permalink
oops forgot one
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Oct 4, 2024
1 parent 9510057 commit 464563f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extras/150kernel/reboot150/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ int module_start(SceSize args, void *argp)
{
int dreg = sceIoOpen("ms0:/TM/DCARK/150/registry/system.dreg", PSP_O_RDONLY, 0);
int ireg = sceIoOpen("ms0:/TM/DCARK/150/registry/system.ireg", PSP_O_RDONLY, 0);
if(dreg < 0 && ireg < 0) {
dreg = sceIoOpen("ms0:/TM/DCARK/150/registry/system.dreg", PSP_O_WRONLY | PSP_O_CREAT, 0777);
ireg = sceIoOpen("ms0:/TM/DCARK/150/registry/system.ireg", PSP_O_WRONLY | PSP_O_CREAT, 0777);
if(dreg < 0 || ireg < 0) {
dreg = sceIoOpen("ms0:/TM/DCARK/150/registry/system.dreg", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
ireg = sceIoOpen("ms0:/TM/DCARK/150/registry/system.ireg", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
int flash_dreg = sceIoOpen("flash1:/registry/system.dreg", PSP_O_RDONLY, 0);
int flash_ireg = sceIoOpen("flash1:/registry/system.ireg", PSP_O_RDONLY, 0);

Expand Down

0 comments on commit 464563f

Please sign in to comment.