Skip to content

Commit

Permalink
Update v1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Sep 17, 2017
1 parent f047944 commit ed61f70
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
16 changes: 11 additions & 5 deletions modules/usbdevice/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
static tai_hook_ref_t ksceIoOpenRef;
static tai_hook_ref_t ksceIoReadRef;

static SceUID hooks[3];
static SceUID hooks[4];

static int first = 1;

Expand Down Expand Up @@ -74,19 +74,25 @@ int module_start(SceSize args, void *argp) {
memset(zero, 0, 0x6E);
hooks[0] = taiInjectDataForKernel(KERNEL_PID, info.modid, 0, 0x1738, zero, 0x6E);

// Remove sector size check
hooks[1] = taiInjectDataForKernel(KERNEL_PID, info.modid, 0, 0x372, zero, 0x4);

// Add patches to support exFAT
hooks[1] = taiHookFunctionImportForKernel(KERNEL_PID, &ksceIoOpenRef, "SceUsbstorVStorDriver", 0x40FD29C7, 0x75192972, ksceIoOpenPatched);
hooks[2] = taiHookFunctionImportForKernel(KERNEL_PID, &ksceIoReadRef, "SceUsbstorVStorDriver", 0x40FD29C7, 0xE17EFC03, ksceIoReadPatched);
hooks[2] = taiHookFunctionImportForKernel(KERNEL_PID, &ksceIoOpenRef, "SceUsbstorVStorDriver", 0x40FD29C7, 0x75192972, ksceIoOpenPatched);
hooks[3] = taiHookFunctionImportForKernel(KERNEL_PID, &ksceIoReadRef, "SceUsbstorVStorDriver", 0x40FD29C7, 0xE17EFC03, ksceIoReadPatched);

return SCE_KERNEL_START_SUCCESS;
}

int module_stop(SceSize args, void *argp) {
if (hooks[3] >= 0)
taiHookReleaseForKernel(hooks[3], ksceIoReadRef);

if (hooks[2] >= 0)
taiHookReleaseForKernel(hooks[2], ksceIoReadRef);
taiHookReleaseForKernel(hooks[2], ksceIoOpenRef);

if (hooks[1] >= 0)
taiHookReleaseForKernel(hooks[1], ksceIoOpenRef);
taiInjectReleaseForKernel(hooks[1]);

if (hooks[0] >= 0)
taiInjectReleaseForKernel(hooks[0]);
Expand Down
7 changes: 7 additions & 0 deletions resources/changeinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,11 @@
- PS TV will now always open FTP when pressing SELECT.<br>
]]>
</changes>
<changes app_ver="01.71">
<![CDATA[
- Fixed pvsd usb device mounting.<br>
- Fixed bug where uma0: options were grayed out on non PS TV models.<br>
- Fixed bug where the QR code scanner showed the result twice.<br>
]]>
</changes>
</changeinfo>
Binary file modified resources/usbdevice.skprx
Binary file not shown.

0 comments on commit ed61f70

Please sign in to comment.