Following his previous PS4 Hacking work and the recent JailbreakMe PS4 4.0x exploit, PlayStation 4 homebrew developer @CTurt (Twitter) updated his open-source PS4 *** with the most recent commit details below.
Download: PS4-***-master.zip / PS4 *** GIT (CTurt) / PS4SDK GIT (Hitodama) / MSYS64.7z (51.9 MB) / MSYS64-beta2.7z (51.9 MB) / MSYS64-beta3.7z (51.9 MB)
Update libc.h
Update libc.c
Cheers to @mcmrc1 in the PSXHAX Shoutbox and @oneman123 for sharing the news on Twitter!
Download: PS4-***-master.zip / PS4 *** GIT (CTurt) / PS4SDK GIT (Hitodama) / MSYS64.7z (51.9 MB) / MSYS64-beta2.7z (51.9 MB) / MSYS64-beta3.7z (51.9 MB)
Update libc.h
Code:
libPS4/include/libc.h
@@ -60,5 +60,6 @@ extern size_t (*fwrite)(const void * ptr, size_t size, size_t count, FILE *strea
extern int (*fseek)(FILE *stream, long int offset, int origin);
extern long int(*ftell)(FILE *stream);
extern int (*fclose)(FILE *stream);
+extern int (*fprintf)(FILE *stream, const char *format, ...);
void initLibc(void);
Code:
libPS4/source/libc.c
@@ -53,6 +53,7 @@ size_t (*fwrite)(const void * ptr, size_t size, size_t count, FILE *stream );
int (*fseek)(FILE *stream, long int offset, int origin);
long int(*ftell)(FILE *stream);
int (*fclose)(FILE *stream);
+int (*fprintf)(FILE *stream, const char *format, ...);
void initLibc(void) {
int libc = sceKernelLoadStartModule("libSceLibcInternal.sprx", 0, NULL, 0, 0, 0);
@@ -108,4 +109,5 @@ void initLibc(void) {
RESOLVE(libc, fseek);
RESOLVE(libc, ftell);
RESOLVE(libc, fclose);
+ RESOLVE(libc, fprintf);
}