mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 14:25:16 +00:00
Refactored the hardware code and added the visitor pattern for operations on the computer/hardware/sensor/parameter tree.
This commit is contained in:
@@ -99,23 +99,19 @@ namespace OpenHardwareMonitor.Hardware.CPU {
|
||||
Update();
|
||||
}
|
||||
|
||||
public string Name {
|
||||
public override string Name {
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
public Identifier Identifier {
|
||||
public override Identifier Identifier {
|
||||
get { return new Identifier("amdcpu", processorIndex.ToString()); }
|
||||
}
|
||||
|
||||
public Image Icon {
|
||||
public override Image Icon {
|
||||
get { return icon; }
|
||||
}
|
||||
|
||||
public string GetReport() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void Update() {
|
||||
public override void Update() {
|
||||
if (pciAddress != 0xFFFFFFFF) {
|
||||
uint value;
|
||||
if (WinRing0.ReadPciConfigDwordEx(pciAddress,
|
||||
|
Reference in New Issue
Block a user