Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from marcussacana/uibase
Implementation Improved
- Loading branch information
Showing
1,641 changed files
with
194,667 additions
and
1,067 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,6 @@ eboot.bin | |
!mono/* | ||
!mono/4.5 | ||
!mono/4.5/* | ||
|
||
|
||
.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include "mono.h" | ||
#include "jailbreak_man.h" | ||
#include "ps4-libjbc/jailbreak.h" | ||
|
||
struct jbc_cred OriCred; | ||
|
||
int jailbroken = 0; | ||
|
||
int jailbreak(U64 authID) | ||
{ | ||
if (jailbroken) | ||
return 0; | ||
|
||
struct jbc_cred cr; | ||
if(jbc_get_cred(&cr)) | ||
return -1; | ||
if(jbc_get_cred(&OriCred)) | ||
return -1; | ||
if(jbc_jailbreak_cred(&cr)) | ||
return -1; | ||
|
||
if (authID){ | ||
cr.jdir = 0; | ||
cr.sceProcType = authID; | ||
cr.sonyCred = 0x40001c0000000000; | ||
cr.sceProcCap = 0x900000000000ff00; | ||
} | ||
if(jbc_set_cred(&cr)) | ||
return -1; | ||
|
||
jailbroken = 1; | ||
return 0; | ||
} | ||
|
||
|
||
int unjailbreak() | ||
{ | ||
if (!jailbroken) | ||
return 0; | ||
if(jbc_set_cred(&OriCred)) | ||
return -1; | ||
jailbroken = 0; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "mono.h" | ||
#include "ps4-libjbc/jailbreak.h" | ||
|
||
extern struct jbc_cred OriCred; | ||
extern int jailbroken; | ||
extern int jailbreak(U64 authID); | ||
extern int unjailbreak(); |
Oops, something went wrong.