Skip to content

Commit

Permalink
Hot fix bug, nvapi error
Browse files Browse the repository at this point in the history
  • Loading branch information
lich426 committed Nov 15, 2020
1 parent 4d078f6 commit bf1cc3c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FanCtrl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<PublisherName>Lich</PublisherName>
<SuiteName>FanCtrl</SuiteName>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.6.0</ApplicationVersion>
<ApplicationVersion>1.2.7.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
Expand Down
4 changes: 2 additions & 2 deletions FanCtrl/Data/Option/OptionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private OptionManager()
Interval = 1000;
IsGigabyte = false;
LibraryType = LibraryType.LibreHardwareMonitor;
IsNvAPIWrapper = true;
IsNvAPIWrapper = false;
IsDimm = true;
IsKraken = true;
IsCLC = true;
Expand Down Expand Up @@ -105,7 +105,7 @@ public bool read()
else
LibraryType = (rootObject.Value<int>("library") == 0) ? LibraryType.LibreHardwareMonitor : LibraryType.OpenHardwareMonitor;

IsNvAPIWrapper = (rootObject.ContainsKey("nvapi") == true) ? rootObject.Value<bool>("nvapi") : true;
IsNvAPIWrapper = (rootObject.ContainsKey("nvapi") == true) ? rootObject.Value<bool>("nvapi") : false;
IsDimm = (rootObject.ContainsKey("dimm") == true) ? rootObject.Value<bool>("dimm") : true;
IsKraken = (rootObject.ContainsKey("kraken") == true) ? rootObject.Value<bool>("kraken") : true;
IsCLC = (rootObject.ContainsKey("clc") == true) ? rootObject.Value<bool>("clc") : true;
Expand Down
6 changes: 5 additions & 1 deletion FanCtrl/Hardware/HardwareManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ public void start()
// NvAPIWrapper
if(OptionManager.getInstance().IsNvAPIWrapper == true)
{
NVIDIA.Initialize();
try
{
NVIDIA.Initialize();
}
catch { }
}

this.createTemp();
Expand Down
6 changes: 3 additions & 3 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
//
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
[assembly: AssemblyVersion("1.2.6")]
[assembly: AssemblyFileVersion("1.2.6")]
[assembly: AssemblyInformationalVersion("1.2.6")]
[assembly: AssemblyVersion("1.2.7")]
[assembly: AssemblyFileVersion("1.2.7")]
[assembly: AssemblyInformationalVersion("1.2.7")]

0 comments on commit bf1cc3c

Please sign in to comment.