Skip to content

Commit

Permalink
Support added up to 9.00
Browse files Browse the repository at this point in the history
  • Loading branch information
xXxTheDarkprogramerxXx committed Dec 13, 2021
1 parent 027ea27 commit dd89528
Show file tree
Hide file tree
Showing 27 changed files with 2,849 additions and 1,336 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1 +1,3 @@
**/.svn
**/external
ps4_unjail/LIBPS4UNJAIL.opensdf
Binary file modified Plugins/PS4/universal.prx
Binary file not shown.
Binary file modified Plugins/PS4/universal_stub.a
Binary file not shown.
Binary file modified Plugins/PS4/universal_stub_weak.a
Binary file not shown.
125 changes: 91 additions & 34 deletions ps4_unjail/Common_Patcher.h
@@ -1,34 +1,91 @@
//#pragma once
//#include "sys/types.h"
//
//#ifndef NULL
//#define NULL 0
//#endif
//
//#ifndef true
//#define true 1
//#endif
//
//#ifndef false
//#define false 0
//#endif
//#include <stdint.h>
//#include <stdarg.h>
//
//#include <sys/sysent.h>
//#include <sys/proc.h>
//#include <sys/syscall.h>
//#include <sys/ptrace.h>
//#include <sys/uio.h>
//
//#include <sys/mman.h>
//#include <sys/pcpu.h>
//#include <vm/vm.h>
//#include <vm/pmap.h>
//#include <vm/vm_map.h>
//
//#include "Resolver.h"
//#include "Patcher.h"
//#include "syscall.h"
//
//extern uint8_t* gKernelBase;
//struct lock_object {
// const char *lo_name; /* Individual lock name. */
// u_int lo_flags;
// u_int lo_data; /* General class specific data. */
// struct witness *lo_witness; /* Data for witness. */
//};
//
//struct mtx {
// struct lock_object lock_object; /* Common lock properties. */
// volatile uintptr_t mtx_lock; /* Owner and flags. */
//};
//
//struct sx {
// struct lock_object lock_object;
// volatile uintptr_t sx_lock;
//};
//
//typedef u_char vm_prot_t; /* protection codes */
//typedef u_char vm_flags_t;
//typedef u_int vm_eflags_t;
//typedef char vm_inherit_t; /* inheritance codes */
///*
//* Objects which live in maps may be either VM objects, or
//* another map (called a "sharing map") which denotes read-write
//* sharing with other maps.
//*/
//union vm_map_object {
// struct vm_object *vm_object; /* object object */
// struct vm_map *sub_map; /* belongs to another map */
//};
//
//struct vm_map_entry {
// struct vm_map_entry *prev; /* previous entry */
// struct vm_map_entry *next; /* next entry */
// struct vm_map_entry *left; /* left child in binary search tree */
// struct vm_map_entry *right; /* right child in binary search tree */
// vm_offset_t start; /* start address */
// vm_offset_t end; /* end address */
// vm_offset_t avail_ssize; /* amt can grow if this is a stack */
// vm_size_t adj_free; /* amount of adjacent free space */
// vm_size_t max_free; /* max free space in subtree */
// union vm_map_object object; /* object I point to */
// vm_ooffset_t offset; /* offset into object */
// vm_eflags_t eflags; /* map entry flags */
// vm_prot_t protection; /* protection code */
// vm_prot_t max_protection; /* maximum protection */
// vm_inherit_t inheritance; /* inheritance */
// int wired_count; /* can be paged if = 0 */
// vm_pindex_t lastr; /* last read */
// struct ucred *cred; /* tmp storage for creator ref */
//};
//
//struct vm_map_entry;
//typedef struct vm_map_entry *vm_map_entry_t;
//
//
//struct vm_map {
// struct vm_map_entry header; /* List of entries */
// struct sx lock; /* Lock for map data */
// struct mtx system_mtx;
// int nentries; /* Number of entries */
// vm_size_t size; /* virtual size */
// u_int timestamp; /* Version number */
// u_char needs_wakeup;
// u_char system_map; /* (c) Am I a system map? */
// vm_flags_t flags; /* flags for this vm_map */
// vm_map_entry_t root; /* Root of a binary search tree */
// //pmap_t pmap; /* (c) Physical map */
//#define min_offset header.start /* (c) */
//#define max_offset header.end /* (c) */
// int busy;
//};
//
//struct vmspace {
// struct vm_map vm_map; /* VM address map */
// struct shmmap_state *vm_shm; /* SYS5 shared memory private data XXX */
// segsz_t vm_swrss; /* resident set size before last swap */
// segsz_t vm_tsize; /* text size (pages) XXX */
// segsz_t vm_dsize; /* data size (pages) XXX */
// segsz_t vm_ssize; /* stack size (pages) */
// caddr_t vm_taddr; /* (c) user virtual address of text */
// caddr_t vm_daddr; /* (c) user virtual address of data */
// caddr_t vm_maxsaddr; /* user VA at max stack growth */
// volatile int vm_refcnt; /* number of references */
// /*
// * Keep the PMAP last, so that CPU-specific variations of that
// * structure on a single architecture don't result in offset
// * variations of the machine-independent fields in the vmspace.
// */
// //struct pmap vm_pmap; /* private physical map */
//};
Binary file modified ps4_unjail/LIBPS4UNJAIL.sdf
Binary file not shown.
Binary file modified ps4_unjail/LIBPS4UNJAIL.v11.suo
Binary file not shown.
1 change: 1 addition & 0 deletions ps4_unjail/NativePluginPS4Example.vcxproj
Expand Up @@ -121,6 +121,7 @@
<ClInclude Include="DownloadHTTPS.h" />
<ClInclude Include="encryptsrv.h" />
<ClInclude Include="encryptsrv_args.h" />
<ClInclude Include="freebsd_helper.h" />
<ClInclude Include="ftps4.h" />
<ClInclude Include="Kernel.h" />
<ClInclude Include="Module.h" />
Expand Down
3 changes: 3 additions & 0 deletions ps4_unjail/NativePluginPS4Example.vcxproj.filters
Expand Up @@ -160,5 +160,8 @@
<ClInclude Include="resolver_patch.c">
<Filter>Patcher</Filter>
</ClInclude>
<ClInclude Include="freebsd_helper.h">
<Filter>Patcher</Filter>
</ClInclude>
</ItemGroup>
</Project>

0 comments on commit dd89528

Please sign in to comment.