added config file check
This commit is contained in:
parent
69c8736c78
commit
27662ada0c
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,12 @@ setWorkingDir %A_ScriptDir%
|
|||
|
||||
#Persistent
|
||||
|
||||
; check for config file and exit if it doesn’t exist
|
||||
if !FileExist("focus.ini") {
|
||||
msgbox, No config file found. Please follow the instructions in the README file.
|
||||
ExitApp, 1
|
||||
}
|
||||
|
||||
; read focus.ini
|
||||
config := readConfig("focus.ini")
|
||||
|
||||
|
|
Loading…
Reference in a new issue