public MainWindow() { try { IconSource = GetIcon("pack://application:,,,/ZenTimings;component/Resources/ZenTimings.ico", 16); InitSystemInfo(); if (settings.DarkMode) { settings.ChangeTheme(); } InitializeComponent(); ReadMemoryModulesInfo(); ReadTimings(); if (settings.AdvancedMode) { PowerTable = new PowerTable(OPS.Smu.SMU_TYPE); BMC = new BiosMemController(); PowerCfgTimer.Interval = TimeSpan.FromMilliseconds(2000); PowerCfgTimer.Tick += new EventHandler(PowerCfgTimer_Tick); ReadMemoryConfig(); ReadSVI(); // Get first base address dramBaseAddress = (uint)(OPS.GetDramBaseAddress() & 0xFFFFFFFF); if (dramBaseAddress > 0) { ReadPowerConfig(); } else { compatMode = true; } StartAutoRefresh(); } DataContext = new { timings = MEMCFG, powerTable = PowerTable, settings, }; } catch (ApplicationException ex) { HandleError(ex.Message); //Dispose(); ExitApplication(); } }
public DebugDialog(Cpu cpu, List <MemoryModule> memModules, MemoryConfig memCfg, BiosMemController biosMemCtrl, AsusWMI asusWmi) { InitializeComponent(); modules = memModules; SI = cpu.systemInfo; MEMCFG = memCfg; PT = cpu.powerTable; BMC = biosMemCtrl; CPU = cpu; AWMI = asusWmi; }
public MainForm() { try { #if BETA MessageBox.Show("This is a BETA version of the application. Some functions might be working incorrectly.\n\n" + "Please report if something is not working as expected."); #endif #if DEBUG Debug.Listeners.AddRange(listeners); #endif InitSystemInfo(); InitializeComponent(); BindControls(); ReadMemoryModulesInfo(); ReadTimings(); if (!settings.AdvancedMode) { SwitchToCompactMode(); } else { PowerTable = new PowerTable(OPS.Smu.SMU_TYPE); BMC = new BiosMemController(); BindAdvancedControls(); ReadMemoryConfig(); ReadSVI(); // Get first base address dramBaseAddress = (uint)(OPS.GetDramBaseAddress() & 0xFFFFFFFF); if (dramBaseAddress > 0) { ReadPowerConfig(); } else { compatMode = true; } StartAutoRefresh(); } } catch (ApplicationException ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Dispose(); ExitApplication(); } }
public DebugDialog(uint dramBaseAddr, List <MemoryModule> memModules, MemoryConfig memCfg, SystemInfo systemInfo, BiosMemController biosMemCtrl, PowerTable powerTable, Ops ops) { InitializeComponent(); baseAddress = dramBaseAddr; modules = memModules; SI = systemInfo; MEMCFG = memCfg; PT = powerTable; BMC = biosMemCtrl; OPS = ops; }
private void LoadPowerData() { string filePath = Path.Combine(Application.streamingAssetsPath, m_PowerSource); m_PowerTable = JsonUtility.FromJson <PowerTable>(File.ReadAllText(filePath)); foreach (PowerData data in m_PowerTable.powertypes) { if (data.name == m_PowerType) { m_PowerData = data; break; } } }
public MainForm() { try { PowerTable = new PowerTable(OPS.Smu.SMU_TYPE); BMC = new BiosMemController(); #if BETA MessageBox.Show("This is a BETA version of the application. Some functions might be working incorrectly.\n\n" + "Please report if something is not working as expected."); #endif #if DEBUG Debug.Listeners.AddRange(listeners); #endif InitSystemInfo(); InitializeComponent(); BindControls(); } catch (ApplicationException ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Dispose(); ExitApplication(); } }
public void Reset() { this._PowerTable = null; this.InternalReset(); }
public LinhaBios(byte[] param0, int param1) : base(param0, param1) { this.RomHeader = new RomHeader(param0, param1); int num = CE027.E000(param0, this.PE002, param1, false, new byte?(0)); if (this.E003(num)) { this.FE001 = new CE001(param0, num, param1); } if (this.FE001 == null || !this.FE001.PE004 || !this.PE000(this.RomHeader.E00B.PE002)) { return; } if (this.E003(this.FE001.FE004.PE001)) { this.PerfTable = new PerfTable(param0, this.FE001.FE004.PE001); } if (this.E003(this.FE001.FE004.PE005)) { this.PowerTable = new PowerTable(param0, this.FE001.FE004.PE005); } if (this.E003(this.FE001.FE004.PE004)) { this.VoltageTable = new VoltageTable(param0, this.FE001.FE004.PE004); } if (this.E003(this.FE001.FE004.PE006)) { this.BoostProfile = new BoostProfile(param0, this.FE001.FE004.PE006); } if (this.E003(this.FE001.FE004.PE007)) { this.BoostTable = new BoostTable(param0, this.FE001.FE004.PE007); } if (this.E003(this.FE001.FE004.PE008)) { this.FE006 = new CE01F(param0, this.FE001.FE004.PE008); } if (this.E003(this.FE001.FE004.PE002)) { this.FanSettings = new FanSettings(param0, this.FE001.FE004.PE002); } if (this.E003(this.FE001.FE004.PE003)) { this.FanSettings2 = new FanSettings2(param0, this.FE001.FE004.PE003); } if (!this.E003(this.FE001.FE004.PE009)) { return; } this.TempTargets = new TempTargets(param0, this.FE001.FE004.PE009); }
public void Reset() { _PowerTable = null; InternalReset(); }