forked from Orbmu2k/nvidiaProfileInspector
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ae6cbf
commit 4f72228
Showing
74 changed files
with
29,824 additions
and
29,740 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.23107.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NVidiaProfileInspectorDmW", "nspector\NVidiaProfileInspectorDmW.csproj", "{27B20027-E783-4ADC-AF16-40A49463F4BF}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.23107.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NVidiaProfileInspectorDmW", "nspector\NVidiaProfileInspectorDmW.csproj", "{27B20027-E783-4ADC-AF16-40A49463F4BF}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
using System; | ||
using System.Text; | ||
|
||
namespace nspector.Common | ||
{ | ||
internal class CachedSettingValue | ||
{ | ||
|
||
internal CachedSettingValue() { } | ||
|
||
internal CachedSettingValue(uint Value, string ProfileNames) | ||
{ | ||
this.Value = Value; | ||
this.ProfileNames = new StringBuilder(ProfileNames); | ||
this.ValueProfileCount = 1; | ||
} | ||
|
||
internal CachedSettingValue(string ValueStr, string ProfileNames) | ||
{ | ||
this.ValueStr = ValueStr; | ||
this.ProfileNames = new StringBuilder(ProfileNames); | ||
this.ValueProfileCount = 1; | ||
} | ||
|
||
internal CachedSettingValue(byte[] ValueBin, string ProfileNames) | ||
{ | ||
this.ValueBin = ValueBin; | ||
this.ProfileNames = new StringBuilder(ProfileNames); | ||
this.ValueProfileCount = 1; | ||
} | ||
|
||
internal string ValueStr = ""; | ||
internal uint Value = 0; | ||
internal byte[] ValueBin = new byte[0]; | ||
internal StringBuilder ProfileNames; | ||
internal uint ValueProfileCount; | ||
} | ||
using System; | ||
using System.Text; | ||
|
||
namespace nspector.Common | ||
{ | ||
internal class CachedSettingValue | ||
{ | ||
|
||
internal CachedSettingValue() { } | ||
|
||
internal CachedSettingValue(uint Value, string ProfileNames) | ||
{ | ||
this.Value = Value; | ||
this.ProfileNames = new StringBuilder(ProfileNames); | ||
this.ValueProfileCount = 1; | ||
} | ||
|
||
internal CachedSettingValue(string ValueStr, string ProfileNames) | ||
{ | ||
this.ValueStr = ValueStr; | ||
this.ProfileNames = new StringBuilder(ProfileNames); | ||
this.ValueProfileCount = 1; | ||
} | ||
|
||
internal CachedSettingValue(byte[] ValueBin, string ProfileNames) | ||
{ | ||
this.ValueBin = ValueBin; | ||
this.ProfileNames = new StringBuilder(ProfileNames); | ||
this.ValueProfileCount = 1; | ||
} | ||
|
||
internal string ValueStr = ""; | ||
internal uint Value = 0; | ||
internal byte[] ValueBin = new byte[0]; | ||
internal StringBuilder ProfileNames; | ||
internal uint ValueProfileCount; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,72 @@ | ||
using nspector.Native.NVAPI2; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace nspector.Common | ||
{ | ||
internal class CachedSettings | ||
{ | ||
internal CachedSettings() { } | ||
|
||
internal CachedSettings(uint settingId, NVDRS_SETTING_TYPE settingType) | ||
{ | ||
SettingId = settingId; | ||
SettingType = settingType; | ||
} | ||
|
||
internal uint SettingId; | ||
|
||
internal List<CachedSettingValue> SettingValues = new List<CachedSettingValue>(); | ||
|
||
internal uint ProfileCount = 0; | ||
|
||
internal NVDRS_SETTING_TYPE SettingType = NVDRS_SETTING_TYPE.NVDRS_DWORD_TYPE; | ||
|
||
internal void AddDwordValue(uint valueDword, string Profile) | ||
{ | ||
var setting = SettingValues.FirstOrDefault(s => s.Value == valueDword); | ||
if (setting == null) | ||
{ | ||
SettingValues.Add(new CachedSettingValue(valueDword, Profile)); | ||
} | ||
else | ||
{ | ||
setting.ProfileNames.Append(", " + Profile); | ||
setting.ValueProfileCount++; | ||
} | ||
ProfileCount++; | ||
} | ||
|
||
internal void AddStringValue(string valueStr, string Profile) | ||
{ | ||
|
||
var setting = SettingValues.FirstOrDefault(s => s.ValueStr == valueStr); | ||
if (setting == null) | ||
{ | ||
SettingValues.Add(new CachedSettingValue(valueStr, Profile)); | ||
} | ||
else | ||
{ | ||
setting.ProfileNames.Append(", " + Profile); | ||
setting.ValueProfileCount++; | ||
} | ||
ProfileCount++; | ||
} | ||
|
||
internal void AddBinaryValue(byte[] valueBin, string Profile) | ||
{ | ||
|
||
var setting = SettingValues.FirstOrDefault(s => s.ValueBin.SequenceEqual(valueBin)); | ||
if (setting == null) | ||
{ | ||
SettingValues.Add(new CachedSettingValue(valueBin, Profile)); | ||
} | ||
else | ||
{ | ||
setting.ProfileNames.Append(", " + Profile); | ||
setting.ValueProfileCount++; | ||
} | ||
ProfileCount++; | ||
} | ||
} | ||
using nspector.Native.NVAPI2; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace nspector.Common | ||
{ | ||
internal class CachedSettings | ||
{ | ||
internal CachedSettings() { } | ||
|
||
internal CachedSettings(uint settingId, NVDRS_SETTING_TYPE settingType) | ||
{ | ||
SettingId = settingId; | ||
SettingType = settingType; | ||
} | ||
|
||
internal uint SettingId; | ||
|
||
internal List<CachedSettingValue> SettingValues = new List<CachedSettingValue>(); | ||
|
||
internal uint ProfileCount = 0; | ||
|
||
internal NVDRS_SETTING_TYPE SettingType = NVDRS_SETTING_TYPE.NVDRS_DWORD_TYPE; | ||
|
||
internal void AddDwordValue(uint valueDword, string Profile) | ||
{ | ||
var setting = SettingValues.FirstOrDefault(s => s.Value == valueDword); | ||
if (setting == null) | ||
{ | ||
SettingValues.Add(new CachedSettingValue(valueDword, Profile)); | ||
} | ||
else | ||
{ | ||
setting.ProfileNames.Append(", " + Profile); | ||
setting.ValueProfileCount++; | ||
} | ||
ProfileCount++; | ||
} | ||
|
||
internal void AddStringValue(string valueStr, string Profile) | ||
{ | ||
|
||
var setting = SettingValues.FirstOrDefault(s => s.ValueStr == valueStr); | ||
if (setting == null) | ||
{ | ||
SettingValues.Add(new CachedSettingValue(valueStr, Profile)); | ||
} | ||
else | ||
{ | ||
setting.ProfileNames.Append(", " + Profile); | ||
setting.ValueProfileCount++; | ||
} | ||
ProfileCount++; | ||
} | ||
|
||
internal void AddBinaryValue(byte[] valueBin, string Profile) | ||
{ | ||
|
||
var setting = SettingValues.FirstOrDefault(s => s.ValueBin.SequenceEqual(valueBin)); | ||
if (setting == null) | ||
{ | ||
SettingValues.Add(new CachedSettingValue(valueBin, Profile)); | ||
} | ||
else | ||
{ | ||
setting.ProfileNames.Append(", " + Profile); | ||
setting.ValueProfileCount++; | ||
} | ||
ProfileCount++; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Xml.Serialization; | ||
|
||
namespace nspector.Common.CustomSettings | ||
{ | ||
[Serializable] | ||
public class CustomSetting | ||
{ | ||
|
||
public string UserfriendlyName { get; set; } | ||
[XmlElement(ElementName = "HexSettingID")] | ||
public string HexSettingId { get; set; } | ||
public string Description { get; set; } | ||
public string GroupName { get; set; } | ||
public string OverrideDefault { get; set; } | ||
public float MinRequiredDriverVersion { get; set; } | ||
|
||
public List<CustomSettingValue> SettingValues { get; set; } | ||
|
||
internal uint SettingId | ||
{ | ||
get { return Convert.ToUInt32(HexSettingId.Trim(), 16); } | ||
} | ||
|
||
internal uint? DefaultValue | ||
{ | ||
get { return string.IsNullOrEmpty(OverrideDefault) ? null : (uint?)Convert.ToUInt32(OverrideDefault.Trim(), 16); } | ||
} | ||
|
||
} | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Xml.Serialization; | ||
|
||
namespace nspector.Common.CustomSettings | ||
{ | ||
[Serializable] | ||
public class CustomSetting | ||
{ | ||
|
||
public string UserfriendlyName { get; set; } | ||
[XmlElement(ElementName = "HexSettingID")] | ||
public string HexSettingId { get; set; } | ||
public string Description { get; set; } | ||
public string GroupName { get; set; } | ||
public string OverrideDefault { get; set; } | ||
public float MinRequiredDriverVersion { get; set; } | ||
|
||
public List<CustomSettingValue> SettingValues { get; set; } | ||
|
||
internal uint SettingId | ||
{ | ||
get { return Convert.ToUInt32(HexSettingId.Trim(), 16); } | ||
} | ||
|
||
internal uint? DefaultValue | ||
{ | ||
get { return string.IsNullOrEmpty(OverrideDefault) ? null : (uint?)Convert.ToUInt32(OverrideDefault.Trim(), 16); } | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.