예제 #1
0
        public int GetTargetInfo(out CCAPI.TargetInfo Info)
        {
            Info = new CCAPI.TargetInfo();
            int[] array       = new int[2];
            int   fw          = 0;
            int   ccapi       = 0;
            int   consoleType = 0;
            ulong sysTable    = 0uL;
            int   num         = CCAPI.getFirmwareInfo(CCAPI.System.connectionID, ref fw, ref ccapi, ref sysTable, ref consoleType);
            int   num2;
            int   result;

            if (num >= 0)
            {
                CCAPI.CCAPIGlobalPointer cCAPIGlobalPointer = new CCAPI.CCAPIGlobalPointer(Marshal.AllocHGlobal(8));
                num = CCAPI.getTemperature(CCAPI.System.connectionID, cCAPIGlobalPointer.GetPtr());
                if (num < 0)
                {
                    num2   = num;
                    result = num2;
                    return(result);
                }
                IntPtr unBuf = cCAPIGlobalPointer.GetPtr();
                for (uint num3 = 0u; num3 < 2u; num3 += 1u)
                {
                    unBuf = this.ReadDataFromUnBufPtr <int>(unBuf, ref array[(int)((uint)((UIntPtr)num3))]);
                }
                this.CompleteInfo(ref Info, fw, ccapi, sysTable, consoleType, array[0], array[1]);
                this.CompleteInfo(ref this.pInfo, fw, ccapi, sysTable, consoleType, array[0], array[1]);
            }
            num2   = num;
            result = num2;
            return(result);
        }
예제 #2
0
 // Token: 0x06000C30 RID: 3120 RVA: 0x0003ECB1 File Offset: 0x0003CEB1
 private void CompleteInfo(ref CCAPI.TargetInfo Info, int fw, int ccapi, ulong sysTable, int consoleType, int tempCELL, int tempRSX)
 {
     Info.Firmware    = fw;
     Info.CCAPI       = ccapi;
     Info.SysTable    = sysTable;
     Info.ConsoleType = consoleType;
     Info.TempCell    = tempCELL;
     Info.TempRSX     = tempRSX;
 }
예제 #3
0
        // Token: 0x06000C49 RID: 3145 RVA: 0x0003F354 File Offset: 0x0003D554
        public int GetTargetInfo(out CCAPI.TargetInfo Info)
        {
            Info = new CCAPI.TargetInfo();
            int[] array       = new int[2];
            int   fw          = 0;
            int   ccapi       = 0;
            int   consoleType = 0;
            ulong sysTable    = 0uL;
            int   num         = this.getFirmwareInfo(ref fw, ref ccapi, ref consoleType);

            if (num >= 0)
            {
                num = this.getTemperature(ref array[0], ref array[1]);
                if (num >= 0)
                {
                    this.CompleteInfo(ref Info, fw, ccapi, sysTable, consoleType, array[0], array[1]);
                    this.CompleteInfo(ref this.pInfo, fw, ccapi, sysTable, consoleType, array[0], array[1]);
                }
            }
            return(num);
        }
예제 #4
0
 public void ClearTargetInfo()
 {
     this.pInfo = new CCAPI.TargetInfo();
 }