Ejemplo n.º 1
0
        public static int PS2EgetLibVersion2(CLR_PSE_Type type)
        {
            Version pluginVer = typeof(Plugin).Assembly.GetName().Version;
            CLR_PSE_Version_Plugin version = new CLR_PSE_Version_Plugin((byte)pluginVer.Major, (byte)pluginVer.Minor, (byte)pluginVer.Build);

            return(version.ToInt32(type));
        }
Ejemplo n.º 2
0
        public int ToInt32(CLR_PSE_Type type)
        {
            CLR_PSE_Type_Version version = 0;

            switch (type)
            {
            case CLR_PSE_Type.GS:
                version = CLR_PSE_Type_Version.GS;
                break;

            case CLR_PSE_Type.PAD:
                version = CLR_PSE_Type_Version.PAD;
                break;

            case CLR_PSE_Type.SPU2:
                version = CLR_PSE_Type_Version.SPU2;
                break;

            case CLR_PSE_Type.CDVD:
                version = CLR_PSE_Type_Version.CDVD;
                break;

            case CLR_PSE_Type.DEV9:
                version = CLR_PSE_Type_Version.DEV9;
                break;

            case CLR_PSE_Type.USB:
                version = CLR_PSE_Type_Version.USB;
                break;

            case CLR_PSE_Type.FW:
                version = CLR_PSE_Type_Version.FW;
                break;

            default:
                break;
            }
            return(Patch << 24 | (byte)version << 16 | Major << 8 | Minor);
        }
Ejemplo n.º 3
0
 private static int nat_PS2EgetLibVersion2(CLR_PSE_Type type)
 {
     return PS2EgetLibVersion2(type);
 }
Ejemplo n.º 4
0
 private static int nat_PS2EgetLibVersion2(CLR_PSE_Type type)
 {
     return(PS2EgetLibVersion2(type));
 }
Ejemplo n.º 5
0
 public static int PS2EgetLibVersion2(CLR_PSE_Type type)
 {
     Version pluginVer = typeof(Plugin).Assembly.GetName().Version;
     CLR_PSE_Version_Plugin version = new CLR_PSE_Version_Plugin((byte)pluginVer.Major, (byte)pluginVer.Minor, (byte)pluginVer.Build);
     return version.ToInt32(type);
 }