Ejemplo n.º 1
0
 public static IXSVFFlasher GetXSVFFlasher()
 {
     if (NativeWin32.IsDeviceConnected(0x11D4, 0x8338)) // Try JRP First...
     {
         return(new JRPXSVFFlasher(0x11D4, 0x8338));
     }
     if (NativeWin32.IsDeviceConnected(0xFFFF, 0x4))
     {
         var flasher = new ARMXSVFFlasher(0xFFFF, 0x4);
         if (!flasher.IsCompatibleVersion())
         {
             throw new X360NANDManagerException(X360NANDManagerException.ErrorLevels.IncompatibleDevice);
         }
         return(flasher);
     }
     throw new X360NANDManagerException(X360NANDManagerException.ErrorLevels.NoDeviceFound);
 }
Ejemplo n.º 2
0
 public static IXSVFFlasher GetXSVFFlasher()
 {
     if (NativeWin32.IsDeviceConnected(0xFFFF, 0x4))
     {
         var flasher = new ARMXSVFFlasher(0xFFFF, 0x4);
         if (!flasher.IsCompatibleVersion())
         {
             throw new DeviceError(DeviceError.ErrorLevels.IncompatibleDevice);
         }
         return(flasher);
     }
     if (NativeWin32.IsDeviceConnected(0x11D4, 0x8338))
     {
         return(new JRPXSVFFlasher(0x11D4, 0x8338));
     }
     throw new DeviceError(DeviceError.ErrorLevels.NoDeviceFound);
 }