From 24e60dff2a59cd2b08a9dd5b9c9ee0ed96add1fa Mon Sep 17 00:00:00 2001 From: "Robert C. Maehl" Date: Wed, 24 Jun 2020 20:17:34 -0400 Subject: [PATCH] Improve #31 Autoload any profile named "autoload.ncc" by default and backport changes --- 2.0/NotCPUCores.au3 | 4 ++-- NotCPUCores.au3 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/2.0/NotCPUCores.au3 b/2.0/NotCPUCores.au3 index 1d545f2..6f5d394 100644 --- a/2.0/NotCPUCores.au3 +++ b/2.0/NotCPUCores.au3 @@ -12,7 +12,7 @@ #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include -#include +#include #include #include #include @@ -750,7 +750,7 @@ Func Main() Case $bInit = True If FileExists(@WorkingDir & "\Settings.ini") And $bInit = True Then $hLibrary = IniRead(@WorkingDir & "\Settings.ini", "Steam" , "Library Path" , "Auto") - $hProfile = IniRead(@WorkingDir & "\Settings.ini", "General", "Default Profile", "None") + $hProfile = IniRead(@WorkingDir & "\Settings.ini", "General", "Default Profile", "Autoload.ncc") If Not FileExists($hLibrary) Then $hLibrary = "" If FileExists($hProfile) Then GUICtrlSetData($hTask , String(_IniRead($hProfile, "General" , "Process" , "", ""))) diff --git a/NotCPUCores.au3 b/NotCPUCores.au3 index 1d545f2..f05e0e1 100644 --- a/NotCPUCores.au3 +++ b/NotCPUCores.au3 @@ -750,7 +750,7 @@ Func Main() Case $bInit = True If FileExists(@WorkingDir & "\Settings.ini") And $bInit = True Then $hLibrary = IniRead(@WorkingDir & "\Settings.ini", "Steam" , "Library Path" , "Auto") - $hProfile = IniRead(@WorkingDir & "\Settings.ini", "General", "Default Profile", "None") + $hProfile = IniRead(@WorkingDir & "\Settings.ini", "General", "Default Profile", "Autoload.ncc") If Not FileExists($hLibrary) Then $hLibrary = "" If FileExists($hProfile) Then GUICtrlSetData($hTask , String(_IniRead($hProfile, "General" , "Process" , "", "")))