mirror of
https://github.com/Orbmu2k/nvidiaProfileInspector.git
synced 2026-01-21 05:08:21 -05:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acb5607a6d | ||
|
|
b6ec45a334 | ||
|
|
75c99ea6c7 | ||
|
|
5aed1a0051 | ||
|
|
128efcdb86 |
@@ -15,6 +15,7 @@ namespace nspector.Common.CustomSettings
|
||||
public string GroupName { get; set; }
|
||||
public string OverrideDefault { get; set; }
|
||||
public float MinRequiredDriverVersion { get; set; }
|
||||
public bool Hidden { get; set; }
|
||||
|
||||
public List<CustomSettingValue> SettingValues { get; set; }
|
||||
|
||||
|
||||
@@ -310,6 +310,7 @@ namespace nspector.Common
|
||||
GroupName = groupName,
|
||||
|
||||
IsApiExposed = GetIsApiExposed(settingId),
|
||||
IsSettingHidden = GetIsSettingHidden(settingId),
|
||||
|
||||
DefaultDwordValue =
|
||||
settingType == NVDRS_SETTING_TYPE.NVDRS_DWORD_TYPE
|
||||
@@ -350,6 +351,7 @@ namespace nspector.Common
|
||||
SettingType = settingMeta.SettingType,
|
||||
GroupName = settingMeta.GroupName,
|
||||
IsApiExposed = settingMeta.IsApiExposed,
|
||||
IsSettingHidden = settingMeta.IsSettingHidden,
|
||||
};
|
||||
|
||||
if (string.IsNullOrEmpty(newMeta.SettingName))
|
||||
@@ -413,5 +415,11 @@ namespace nspector.Common
|
||||
var driverMeta = MetaServices.FirstOrDefault(m => m.Service.Source == SettingMetaSource.DriverSettings);
|
||||
return (driverMeta != null && driverMeta.Service.GetSettingIds().Contains(settingId));
|
||||
}
|
||||
|
||||
private bool GetIsSettingHidden(uint settingId)
|
||||
{
|
||||
var csnMeta = MetaServices.FirstOrDefault(m => m.Service.Source == SettingMetaSource.CustomSettings);
|
||||
return (csnMeta != null && ((CustomSettingMetaService)csnMeta.Service).IsSettingHidden(settingId));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -443,6 +443,7 @@ namespace nspector.Common
|
||||
State = settingState,
|
||||
IsStringValue = settingMeta.SettingType == NVDRS_SETTING_TYPE.NVDRS_WSTRING_TYPE,
|
||||
IsApiExposed = settingMeta.IsApiExposed,
|
||||
IsSettingHidden = settingMeta.IsSettingHidden,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -469,6 +470,8 @@ namespace nspector.Common
|
||||
|
||||
foreach (var settingId in settingIds)
|
||||
{
|
||||
if (settingId == 0) continue;
|
||||
|
||||
var setting = ReadSetting(hSession, hProfile, settingId);
|
||||
if (setting != null)
|
||||
result.Add(CreateSettingItem(setting.Value));
|
||||
|
||||
@@ -101,6 +101,14 @@ namespace nspector.Common.Meta
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool IsSettingHidden(uint settingId)
|
||||
{
|
||||
var setting = customSettings.Settings
|
||||
.FirstOrDefault(x => x.SettingId.Equals(settingId));
|
||||
|
||||
return setting?.Hidden ?? false;
|
||||
}
|
||||
|
||||
public SettingMetaSource Source
|
||||
{
|
||||
get { return _source; }
|
||||
|
||||
@@ -19,6 +19,8 @@ namespace nspector.Common.Meta
|
||||
|
||||
public bool IsApiExposed { get; set; }
|
||||
|
||||
public bool IsSettingHidden { get; set; }
|
||||
|
||||
public List<SettingValue<string>> StringValues { get; set; }
|
||||
|
||||
public List<SettingValue<uint>> DwordValues { get; set; }
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
|
||||
public bool IsApiExposed { get; set; }
|
||||
|
||||
public bool IsSettingHidden { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0}; 0x{1:X8}; {2}; {3}; {4};", State, SettingId, SettingText, ValueText, ValueRaw);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -45,6 +45,7 @@
|
||||
FXAA_ALLOW_ID = 0x1034CB89,
|
||||
FXAA_ENABLE_ID = 0x1074C972,
|
||||
FXAA_INDICATOR_ENABLE_ID = 0x1068FB9C,
|
||||
LATENCY_INDICATOR_AUTOALIGN_ID = 0x1095F170,
|
||||
MCSFRSHOWSPLIT_ID = 0x10287051,
|
||||
NV_QUALITY_UPSCALING_ID = 0x10444444,
|
||||
OPTIMUS_MAXAA_ID = 0x10F9DC83,
|
||||
@@ -86,6 +87,7 @@
|
||||
MAXWELL_B_SAMPLE_INTERLEAVE_ID = 0x0098C1AC,
|
||||
PRERENDERLIMIT_ID = 0x007BA09E,
|
||||
PS_SHADERDISKCACHE_ID = 0x00198FFF,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_ID = 0x00AC8497,
|
||||
PS_TEXFILTER_ANISO_OPTS2_ID = 0x00E73211,
|
||||
PS_TEXFILTER_BILINEAR_IN_ANISO_ID = 0x0084CD70,
|
||||
PS_TEXFILTER_DISABLE_TRILIN_SLOPE_ID = 0x002ECAF2,
|
||||
@@ -97,9 +99,9 @@
|
||||
SET_VAB_DATA_ID = 0x00AB8687,
|
||||
VSYNCMODE_ID = 0x00A879CF,
|
||||
VSYNCTEARCONTROL_ID = 0x005A375C,
|
||||
TOTAL_DWORD_SETTING_NUM = 92,
|
||||
TOTAL_DWORD_SETTING_NUM = 94,
|
||||
TOTAL_WSTRING_SETTING_NUM = 4,
|
||||
TOTAL_SETTING_NUM = 96,
|
||||
TOTAL_SETTING_NUM = 98,
|
||||
INVALID_SETTING_ID = 0xFFFFFFFF
|
||||
}
|
||||
|
||||
@@ -137,7 +139,7 @@
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_ZERO_SCANLINES = 0,
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_ONE_FULL_FRAME_OF_SCANLINES = 100,
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_NUM_VALUES = 2,
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_DEFAULT = 0
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_DEFAULT = 0U
|
||||
}
|
||||
|
||||
public enum EValues_OGL_DEFAULT_SWAP_INTERVAL_SIGN : uint {
|
||||
@@ -226,7 +228,7 @@
|
||||
OGL_THREAD_CONTROL_ENABLE = 0x00000001,
|
||||
OGL_THREAD_CONTROL_DISABLE = 0x00000002,
|
||||
OGL_THREAD_CONTROL_NUM_VALUES = 2,
|
||||
OGL_THREAD_CONTROL_DEFAULT = 0
|
||||
OGL_THREAD_CONTROL_DEFAULT = 0U
|
||||
}
|
||||
|
||||
public enum EValues_OGL_TMON_LEVEL : uint {
|
||||
@@ -496,6 +498,13 @@
|
||||
FXAA_INDICATOR_ENABLE_DEFAULT = FXAA_INDICATOR_ENABLE_OFF
|
||||
}
|
||||
|
||||
public enum EValues_LATENCY_INDICATOR_AUTOALIGN : uint {
|
||||
LATENCY_INDICATOR_AUTOALIGN_DISABLED = 0x0,
|
||||
LATENCY_INDICATOR_AUTOALIGN_ENABLED = 0x1,
|
||||
LATENCY_INDICATOR_AUTOALIGN_NUM_VALUES = 2,
|
||||
LATENCY_INDICATOR_AUTOALIGN_DEFAULT = LATENCY_INDICATOR_AUTOALIGN_ENABLED
|
||||
}
|
||||
|
||||
public enum EValues_MCSFRSHOWSPLIT : uint {
|
||||
MCSFRSHOWSPLIT_DISABLED = 0x34534064,
|
||||
MCSFRSHOWSPLIT_ENABLED = 0x24545582,
|
||||
@@ -872,7 +881,14 @@
|
||||
PS_SHADERDISKCACHE_OFF = 0x00000000,
|
||||
PS_SHADERDISKCACHE_ON = 0x00000001,
|
||||
PS_SHADERDISKCACHE_NUM_VALUES = 2,
|
||||
PS_SHADERDISKCACHE_DEFAULT = 0x1
|
||||
PS_SHADERDISKCACHE_DEFAULT = PS_SHADERDISKCACHE_ON
|
||||
}
|
||||
|
||||
public enum EValues_PS_SHADERDISKCACHE_MAX_SIZE : uint {
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_MIN = 0x0,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_MAX = 0xffffffff,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_NUM_VALUES = 2,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_DEFAULT = 0x1000
|
||||
}
|
||||
|
||||
public enum EValues_PS_TEXFILTER_ANISO_OPTS2 : uint {
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
#define FXAA_ALLOW_STRING L"NVIDIA Predefined FXAA Usage"
|
||||
#define FXAA_ENABLE_STRING L"Enable FXAA"
|
||||
#define FXAA_INDICATOR_ENABLE_STRING L"Enable FXAA Indicator"
|
||||
#define LATENCY_INDICATOR_AUTOALIGN_STRING L"Autoalign flash indicator"
|
||||
#define MCSFRSHOWSPLIT_STRING L"SLI indicator"
|
||||
#define NV_QUALITY_UPSCALING_STRING L"NVIDIA Quality upscaling"
|
||||
#define OPTIMUS_MAXAA_STRING L"Maximum AA samples allowed for a given application"
|
||||
@@ -125,6 +126,7 @@
|
||||
#define MAXWELL_B_SAMPLE_INTERLEAVE_STRING L"Enable sample interleaving (MFAA)"
|
||||
#define PRERENDERLIMIT_STRING L"Maximum pre-rendered frames"
|
||||
#define PS_SHADERDISKCACHE_STRING L"Shader Cache"
|
||||
#define PS_SHADERDISKCACHE_MAX_SIZE_STRING L"Shader disk cache maximum size"
|
||||
#define PS_TEXFILTER_ANISO_OPTS2_STRING L"Texture filtering - Anisotropic sample optimization"
|
||||
#define PS_TEXFILTER_BILINEAR_IN_ANISO_STRING L"Texture filtering - Anisotropic filter optimization"
|
||||
#define PS_TEXFILTER_DISABLE_TRILIN_SLOPE_STRING L"Texture filtering - Trilinear optimization"
|
||||
@@ -182,6 +184,7 @@ enum ESetting {
|
||||
FXAA_ALLOW_ID = 0x1034CB89,
|
||||
FXAA_ENABLE_ID = 0x1074C972,
|
||||
FXAA_INDICATOR_ENABLE_ID = 0x1068FB9C,
|
||||
LATENCY_INDICATOR_AUTOALIGN_ID = 0x1095F170,
|
||||
MCSFRSHOWSPLIT_ID = 0x10287051,
|
||||
NV_QUALITY_UPSCALING_ID = 0x10444444,
|
||||
OPTIMUS_MAXAA_ID = 0x10F9DC83,
|
||||
@@ -223,6 +226,7 @@ enum ESetting {
|
||||
MAXWELL_B_SAMPLE_INTERLEAVE_ID = 0x0098C1AC,
|
||||
PRERENDERLIMIT_ID = 0x007BA09E,
|
||||
PS_SHADERDISKCACHE_ID = 0x00198FFF,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_ID = 0x00AC8497,
|
||||
PS_TEXFILTER_ANISO_OPTS2_ID = 0x00E73211,
|
||||
PS_TEXFILTER_BILINEAR_IN_ANISO_ID = 0x0084CD70,
|
||||
PS_TEXFILTER_DISABLE_TRILIN_SLOPE_ID = 0x002ECAF2,
|
||||
@@ -234,9 +238,9 @@ enum ESetting {
|
||||
SET_VAB_DATA_ID = 0x00AB8687,
|
||||
VSYNCMODE_ID = 0x00A879CF,
|
||||
VSYNCTEARCONTROL_ID = 0x005A375C,
|
||||
TOTAL_DWORD_SETTING_NUM = 92,
|
||||
TOTAL_DWORD_SETTING_NUM = 94,
|
||||
TOTAL_WSTRING_SETTING_NUM = 4,
|
||||
TOTAL_SETTING_NUM = 96,
|
||||
TOTAL_SETTING_NUM = 98,
|
||||
INVALID_SETTING_ID = 0xFFFFFFFF
|
||||
};
|
||||
|
||||
@@ -274,7 +278,7 @@ enum EValues_OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL {
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_ZERO_SCANLINES = 0,
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_ONE_FULL_FRAME_OF_SCANLINES = 100,
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_NUM_VALUES = 2,
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_DEFAULT = 0
|
||||
OGL_DEFAULT_SWAP_INTERVAL_FRACTIONAL_DEFAULT = 0U
|
||||
};
|
||||
|
||||
enum EValues_OGL_DEFAULT_SWAP_INTERVAL_SIGN {
|
||||
@@ -368,7 +372,7 @@ enum EValues_OGL_THREAD_CONTROL {
|
||||
OGL_THREAD_CONTROL_ENABLE = 0x00000001,
|
||||
OGL_THREAD_CONTROL_DISABLE = 0x00000002,
|
||||
OGL_THREAD_CONTROL_NUM_VALUES = 2,
|
||||
OGL_THREAD_CONTROL_DEFAULT = 0
|
||||
OGL_THREAD_CONTROL_DEFAULT = 0U
|
||||
};
|
||||
|
||||
enum EValues_OGL_TMON_LEVEL {
|
||||
@@ -646,6 +650,13 @@ enum EValues_FXAA_INDICATOR_ENABLE {
|
||||
FXAA_INDICATOR_ENABLE_DEFAULT = FXAA_INDICATOR_ENABLE_OFF
|
||||
};
|
||||
|
||||
enum EValues_LATENCY_INDICATOR_AUTOALIGN {
|
||||
LATENCY_INDICATOR_AUTOALIGN_DISABLED = 0x0,
|
||||
LATENCY_INDICATOR_AUTOALIGN_ENABLED = 0x1,
|
||||
LATENCY_INDICATOR_AUTOALIGN_NUM_VALUES = 2,
|
||||
LATENCY_INDICATOR_AUTOALIGN_DEFAULT = LATENCY_INDICATOR_AUTOALIGN_ENABLED
|
||||
};
|
||||
|
||||
enum EValues_MCSFRSHOWSPLIT {
|
||||
MCSFRSHOWSPLIT_DISABLED = 0x34534064,
|
||||
MCSFRSHOWSPLIT_ENABLED = 0x24545582,
|
||||
@@ -1022,7 +1033,14 @@ enum EValues_PS_SHADERDISKCACHE {
|
||||
PS_SHADERDISKCACHE_OFF = 0x00000000,
|
||||
PS_SHADERDISKCACHE_ON = 0x00000001,
|
||||
PS_SHADERDISKCACHE_NUM_VALUES = 2,
|
||||
PS_SHADERDISKCACHE_DEFAULT = 0x1
|
||||
PS_SHADERDISKCACHE_DEFAULT = PS_SHADERDISKCACHE_ON
|
||||
};
|
||||
|
||||
enum EValues_PS_SHADERDISKCACHE_MAX_SIZE {
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_MIN = 0x0,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_MAX = 0xffffffff,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_NUM_VALUES = 2,
|
||||
PS_SHADERDISKCACHE_MAX_SIZE_DEFAULT = 0x1000
|
||||
};
|
||||
|
||||
enum EValues_PS_TEXFILTER_ANISO_OPTS2 {
|
||||
|
||||
@@ -586,13 +586,24 @@ namespace nspector.Native.NVAPI2
|
||||
public delegate NvAPI_Status DRS_FindApplicationByNameDelegate(IntPtr hSession, [MarshalAs(UnmanagedType.LPWStr, SizeConst = (int)NvapiDrsWrapper.NVAPI_UNICODE_STRING_MAX)]StringBuilder appName, ref IntPtr phProfile, ref NVDRS_APPLICATION_V3 pApplication);
|
||||
public static readonly DRS_FindApplicationByNameDelegate DRS_FindApplicationByName;
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate NvAPI_Status DRS_SetSettingDelegate(IntPtr hSession, IntPtr hProfile, ref NVDRS_SETTING pSetting);
|
||||
public static readonly DRS_SetSettingDelegate DRS_SetSetting;
|
||||
public static NvAPI_Status DRS_SetSetting(IntPtr hSession, IntPtr hProfile, ref NVDRS_SETTING pSetting)
|
||||
{
|
||||
return _DRS_SetSetting(hSession, hProfile, ref pSetting, 0, 0);
|
||||
}
|
||||
|
||||
public static NvAPI_Status DRS_GetSetting(IntPtr hSession, IntPtr hProfile, uint settingId, ref NVDRS_SETTING pSetting)
|
||||
{
|
||||
uint x = 0;
|
||||
return _DRS_GetSetting(hSession, hProfile, settingId, ref pSetting, ref x);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate NvAPI_Status DRS_GetSettingDelegate(IntPtr hSession, IntPtr hProfile, uint settingId, ref NVDRS_SETTING pSetting);
|
||||
public static readonly DRS_GetSettingDelegate DRS_GetSetting;
|
||||
public delegate NvAPI_Status DRS_SetSettingDelegate(IntPtr hSession, IntPtr hProfile, ref NVDRS_SETTING pSetting, uint x, uint y);
|
||||
private static readonly DRS_SetSettingDelegate _DRS_SetSetting;
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate NvAPI_Status DRS_GetSettingDelegate(IntPtr hSession, IntPtr hProfile, uint settingId, ref NVDRS_SETTING pSetting, ref uint x);
|
||||
private static readonly DRS_GetSettingDelegate _DRS_GetSetting;
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
private delegate NvAPI_Status DRS_EnumSettingsDelegate(IntPtr hSession, IntPtr hProfile, uint startIndex, ref uint settingsCount, IntPtr pSetting);
|
||||
@@ -728,17 +739,17 @@ namespace nspector.Native.NVAPI2
|
||||
GetDelegate(0xED1F8C69, out DRS_GetApplicationInfo);
|
||||
GetDelegate(0x7FA2173A, out DRS_EnumApplicationsInternal);
|
||||
GetDelegate(0xEEE566B2, out DRS_FindApplicationByName);
|
||||
GetDelegate(0x577DD202, out DRS_SetSetting);
|
||||
GetDelegate(0x73BF8338, out DRS_GetSetting);
|
||||
GetDelegate(0xAE3039DA, out DRS_EnumSettingsInternal);
|
||||
GetDelegate(0xF020614A, out DRS_EnumAvailableSettingIdsInternal);
|
||||
GetDelegate(0x8A2CF5F5, out _DRS_SetSetting);
|
||||
GetDelegate(0xEA99498D, out _DRS_GetSetting);
|
||||
GetDelegate(0xCFD6983E, out DRS_EnumSettingsInternal);
|
||||
GetDelegate(0xE5DE48E5, out DRS_EnumAvailableSettingIdsInternal);
|
||||
GetDelegate(0x2EC39F90, out DRS_EnumAvailableSettingValuesInternal);
|
||||
GetDelegate(0xCB7309CD, out DRS_GetSettingIdFromName);
|
||||
GetDelegate(0xD61CBE6E, out DRS_GetSettingNameFromId);
|
||||
GetDelegate(0x1EB13791, out DRS_GetSettingNameFromId);
|
||||
GetDelegate(0xE4A26362, out DRS_DeleteProfileSetting);
|
||||
GetDelegate(0x5927B094, out DRS_RestoreAllDefaults);
|
||||
GetDelegate(0xFA5F6134, out DRS_RestoreProfileDefault);
|
||||
GetDelegate(0x53F0381E, out DRS_RestoreProfileDefaultSetting);
|
||||
GetDelegate(0x7DD5B261, out DRS_RestoreProfileDefaultSetting);
|
||||
GetDelegate(0xDA8466A0, out DRS_GetBaseProfile);
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("NVIDIA Profile Inspector")]
|
||||
[assembly: AssemblyCopyright("©2020 by Orbmu2k")]
|
||||
[assembly: AssemblyCopyright("©2022 by Orbmu2k")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@@ -32,7 +32,7 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.3.0.0")]
|
||||
[assembly: AssemblyFileVersion("2.3.0.0")]
|
||||
[assembly: AssemblyVersion("2.4.0.1")]
|
||||
[assembly: AssemblyFileVersion("2.4.0.1")]
|
||||
|
||||
|
||||
|
||||
24
nspector/Properties/Resources.Designer.cs
generated
24
nspector/Properties/Resources.Designer.cs
generated
@@ -19,7 +19,7 @@ namespace nspector.Properties {
|
||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Resources {
|
||||
@@ -73,17 +73,19 @@ namespace nspector.Properties {
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die <?xml version="1.0" encoding="utf-8"?>
|
||||
///<CustomSettingNames>
|
||||
/// <ShowCustomizedSettingNamesOnly>false</ShowCustomizedSettingNamesOnly>
|
||||
/// <Settings>
|
||||
/// <CustomSetting>
|
||||
/// <UserfriendlyName>NVLINK SLI Mode</UserfriendlyName>
|
||||
/// <HexSettingID>0x00A06948</HexSettingID>
|
||||
/// <GroupName>6 - SLI</GroupName>
|
||||
/// <MinRequiredDriverVersion>410.00</MinRequiredDriverVersion>
|
||||
/// </CustomSetting>
|
||||
/// <CustomSetting>
|
||||
/// <UserfriendlyName>Texture filtering - Quality substitution</UserfriendlyName>
|
||||
/// [Rest der Zeichenfolge wurde abgeschnitten]"; ähnelt.
|
||||
/// <CustomSetting>
|
||||
/// <UserfriendlyName>VRR Support Indicator</UserfriendlyName>
|
||||
/// <HexSettingID>0x8df510</HexSettingID>
|
||||
/// <GroupName>2 - Sync and Refresh</GroupName>
|
||||
/// <SettingValues>
|
||||
/// <CustomSettingValue>
|
||||
/// <UserfriendlyName>Off</UserfriendlyName>
|
||||
/// <HexValue>0x00000000</HexValue>
|
||||
/// </CustomSettingValue>
|
||||
/// <CustomSettingValue>
|
||||
/// <UserfriendlyName>On</UserfriendlyName>
|
||||
/// <HexValue>0x0000000 [Rest der Zeichenfolge wurde abgeschnitten]"; ähnelt.
|
||||
/// </summary>
|
||||
public static string CustomSettingNames {
|
||||
get {
|
||||
|
||||
3
nspector/app.config
Normal file
3
nspector/app.config
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
|
||||
@@ -150,6 +150,8 @@ namespace nspector
|
||||
|
||||
foreach (var settingItem in _currentProfileSettingItems)
|
||||
{
|
||||
if (settingItem.IsSettingHidden) continue;
|
||||
|
||||
var itm = lvSettings.Items.Add(CreateListViewItem(settingItem));
|
||||
if (Debugger.IsAttached && !settingItem.IsApiExposed)
|
||||
{
|
||||
@@ -1220,8 +1222,71 @@ namespace nspector
|
||||
{
|
||||
CopyModifiedSettingsToClipBoard();
|
||||
}
|
||||
|
||||
if (Debugger.IsAttached && e.Control && e.KeyCode == Keys.T)
|
||||
{
|
||||
TestStoreSettings();
|
||||
}
|
||||
}
|
||||
|
||||
private void TestStoreSettings()
|
||||
{
|
||||
var sbSettings = new StringBuilder();
|
||||
sbSettings.AppendFormat("{0,-40} {1}\r\n", "### Inspector Store Failed ###", _CurrentProfile);
|
||||
|
||||
pbMain.Minimum = 0;
|
||||
pbMain.Maximum = lvSettings.Items.Count;
|
||||
int cntIndex = 0;
|
||||
|
||||
foreach (ListViewGroup group in lvSettings.Groups)
|
||||
{
|
||||
bool groupTitleAdded = false;
|
||||
foreach (ListViewItem item in group.Items)
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
pbMain.Value = cntIndex++;
|
||||
|
||||
var settingId = (uint)item.Tag;
|
||||
var meta = _meta.GetSettingMeta(settingId);
|
||||
if (meta.SettingType != NVDRS_SETTING_TYPE.NVDRS_DWORD_TYPE) continue;
|
||||
|
||||
var wasNotSet = new int[] { 1, 2, 3 }.Contains(item.ImageIndex);
|
||||
|
||||
if (wasNotSet)
|
||||
{
|
||||
_drs.SetDwordValueToProfile(_CurrentProfile, settingId, 0x0);
|
||||
_drs.ResetValue(_CurrentProfile, settingId, out var rm);
|
||||
}
|
||||
else
|
||||
{
|
||||
var tmpValue = _drs.GetDwordValueFromProfile(_CurrentProfile, settingId);
|
||||
_drs.SetDwordValueToProfile(_CurrentProfile, settingId, 0x0);
|
||||
_drs.SetDwordValueToProfile(_CurrentProfile, settingId, tmpValue);
|
||||
}
|
||||
|
||||
}
|
||||
catch (NvapiException ne)
|
||||
{
|
||||
if (!groupTitleAdded)
|
||||
{
|
||||
sbSettings.AppendFormat("\r\n[{0}]\r\n", group.Header);
|
||||
groupTitleAdded = true;
|
||||
}
|
||||
sbSettings.AppendFormat("{0,-40} SettingId: {1} Failed: {2}\r\n", item.Text, DrsUtil.GetDwordString((uint)item.Tag), ne.Status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pbMain.Value = 0;
|
||||
|
||||
Clipboard.SetText(sbSettings.ToString());
|
||||
MessageBox.Show("Failed Settings Stored to Clipboard");
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void CopyModifiedSettingsToClipBoard()
|
||||
{
|
||||
var sbSettings = new StringBuilder();
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>nspector</RootNamespace>
|
||||
<AssemblyName>nvidiaProfileInspector</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<TargetFrameworkProfile />
|
||||
@@ -226,6 +226,7 @@
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config" />
|
||||
<None Include="app.manifest">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
|
||||
Reference in New Issue
Block a user