File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments