Skip to content

Commit

Permalink
stupid mistake with the ini file
Browse files Browse the repository at this point in the history
this was a new feature for the release, and i fubar'd some novice
working directory stuff...
  • Loading branch information
snicker committed Sep 30, 2013
1 parent c06e2be commit 449aa7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions habitrpg.au3
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#AutoIt3Wrapper_Icon=res\icon-128.ico
#AutoIt3Wrapper_Outfile=release\habitrpg.exe
#AutoIt3Wrapper_Res_Description=HabitRPG-CLI
#AutoIt3Wrapper_Res_Fileversion=0.1.0.0
#AutoIt3Wrapper_Res_Fileversion=0.1.1.0
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#AutoIt3Wrapper_Run_After=md "%scriptdir%\release\%fileversion%"
Expand All @@ -12,7 +12,7 @@
#AutoIt3Wrapper_Run_After=xcopy "%scriptdir%\res\*" "%scriptdir%\release\%fileversion%\res\" /Y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;HabitRPG-CLI
;Version 0.1 by snicker ([email protected])
;Version 0.1.1 by snicker ([email protected])
;https://github.com/snicker/HabitRPG-CLI
#include ".\libs\winhttp\WinHttp.au3"
#include ".\libs\growl\_Growl.au3"
Expand All @@ -21,8 +21,8 @@

Opt("MustDeclareVars", 1)

Dim $habitRpgUID = IniRead(".\habitrpg.ini","HabitRPGSettings","UID",-1)
Dim $habitAPIToken = IniRead(".\habitrpg.ini","HabitRPGSettings","APIKey",-1)
Dim $habitRpgUID = IniRead(@ScriptDir & "\habitrpg.ini","HabitRPGSettings","UID",-1)
Dim $habitAPIToken = IniRead(@ScriptDir & "\habitrpg.ini","HabitRPGSettings","APIKey",-1)

If $habitRpgUID == -1 OR $habitAPIToken == -1 Then
MsgBox(0,"Config Missing","Please make sure habitrpg.ini is in the current directory and has your UID and API Key.")
Expand Down

0 comments on commit 449aa7b

Please sign in to comment.