mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Add an extra layer of library protection
Stopping unneeded AMD calls in NVIDIA mode, and NVIDIA calls in AMD mode.
This commit is contained in:
parent
42760c82c3
commit
cc125b6601
@ -477,9 +477,20 @@ namespace DisplayMagicianShared
|
|||||||
WinLibrary winLibrary = WinLibrary.GetLibrary();
|
WinLibrary winLibrary = WinLibrary.GetLibrary();
|
||||||
|
|
||||||
// For a library update to the latest version so that we pick up any new changes since the last update
|
// For a library update to the latest version so that we pick up any new changes since the last update
|
||||||
nvidiaLibrary.UpdateActiveConfig();
|
if (VideoMode == VIDEO_MODE.NVIDIA && nvidiaLibrary.IsInstalled)
|
||||||
amdLibrary.UpdateActiveConfig();
|
{
|
||||||
winLibrary.UpdateActiveConfig();
|
nvidiaLibrary.UpdateActiveConfig();
|
||||||
|
winLibrary.UpdateActiveConfig();
|
||||||
|
}
|
||||||
|
else if (VideoMode == VIDEO_MODE.AMD && amdLibrary.IsInstalled)
|
||||||
|
{
|
||||||
|
amdLibrary.UpdateActiveConfig();
|
||||||
|
winLibrary.UpdateActiveConfig();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
winLibrary.UpdateActiveConfig();
|
||||||
|
}
|
||||||
|
|
||||||
// Grab the profile data from the current stored config (that we just updated)
|
// Grab the profile data from the current stored config (that we just updated)
|
||||||
_nvidiaDisplayConfig = nvidiaLibrary.ActiveDisplayConfig;
|
_nvidiaDisplayConfig = nvidiaLibrary.ActiveDisplayConfig;
|
||||||
|
@ -1445,7 +1445,7 @@ namespace DisplayMagicianShared.Windows
|
|||||||
if (!displayIdentifiers.Contains(displayIdentifier))
|
if (!displayIdentifiers.Contains(displayIdentifier))
|
||||||
{
|
{
|
||||||
displayIdentifiers.Add(displayIdentifier);
|
displayIdentifiers.Add(displayIdentifier);
|
||||||
SharedLogger.logger.Debug($"ProfileRepository/GenerateProfileDisplayIdentifiers: DisplayIdentifier: {displayIdentifier}");
|
SharedLogger.logger.Debug($"WinLibrary/GetSomeDisplayIdentifiers: DisplayIdentifier: {displayIdentifier}");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user