Skip to content

Commit 13175ff

Browse files
committed
- Fix for ubisoft AP detection (tintin, driver SF and maybe more)
1 parent bc77f4f commit 13175ff

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

fs-usb/FS.c

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -955,14 +955,24 @@ s32 FS_Open( char *Path, u8 Mode )
955955
}
956956
else if(strncmp( Path+5, "usb2", 4 ) == 0)
957957
{
958-
dbgprintf("/dev/usb2 trigger detected\n");
959-
return USB_FD;
958+
if(*(u8*)0x0 != 'R' && *(u8*)0x0 != 'S')
959+
{
960+
dbgprintf("/dev/usb2 trigger detected\n");
961+
return USB_FD;
962+
}
963+
else
964+
{
965+
dbgprintf("UBISOFT AP detection found\n");
966+
return FS_ENOENT;
967+
}
960968
}
961969
/* else if( strncmp( Path+5, "flash", 5 ) == 0 ) {
962970
return FS_ENOENT;
963971
} else if( strncmp( Path+5, "boot2", 5 ) == 0) {
964972
return B2_FD;
965-
}*/ else {
973+
}*/
974+
else
975+
{
966976
// Not a devicepath of ours, dispatch it to the syscall again..
967977
return FS_ENOENT;
968978
}

0 commit comments

Comments
 (0)