示例#1
0
 //freeze
 //config
 //about
 public static int Test()
 {
     try
     {
         CLR_PSE_Version_PCSX2 minVer = new CLR_PSE_Version_PCSX2(1, 3, 1);
         if (CLR_PSE.EmuName != "PCSX2")
         {
             return(0); //Hope it works
         }
         if (CLR_PSE.EmuVersion >= minVer)
         {
             return(0);
         }
         else
         {
             return(-1);
         }
     }
     catch (Exception e) when(Log_Fatal(e))
     {
         throw;
     }
     catch (Exception) when(tryAvoidThrow)
     {
         return(1);
     }
 }
示例#2
0
 //Only Used on Windows
 public static void PS2EsetEmuVersion(IntPtr name, int version)
 {
     if (name == IntPtr.Zero)
     {
         emuName = "";
     }
     else
     {
         emuName = Marshal.PtrToStringAnsi(name);
     }
     emuVersion = CLR_PSE_Version_PCSX2.ToVersion(version);
 }
示例#3
0
 //freeze
 //config
 //about
 public static int Test()
 {
     try
     {
         CLR_PSE_Version_PCSX2 minVer = new CLR_PSE_Version_PCSX2(1, 3, 1);
         if (CLR_PSE.EmuName != "PCSX2")
         {
             return(0); //Hope it works
         }
         if (CLR_PSE.EmuVersion >= minVer)
         {
             return(0);
         }
         else
         {
             return(-1);
         }
     }
     catch (Exception e)
     {
         CLR_PSE_PluginLog.MsgBoxErrorTrapper(e);
         return(1);
     }
 }
示例#4
0
 //freeze
 //config
 //about
 //test
 public static int Test()
 {
     try
     {
         CLR_PSE_Version_PCSX2 minVer = new CLR_PSE_Version_PCSX2(1, 3, 1);
         if (CLR_PSE.EmuName != "PCSX2")
         {
             return 0; //Hope it works
         }
         if (CLR_PSE.EmuVersion >= minVer)
         {
             return 0;
         }
         else
         {
             return -1;
         }
     }
     catch (Exception e)
     {
         CLR_PSE_PluginLog.MsgBoxError(e);
         return 1;
     }
 }