Skip to content

Commit

Permalink
fixed fallback.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Eruyome committed Nov 14, 2017
1 parent c22f441 commit 6db798c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
Binary file modified Fallback.exe
Binary file not shown.
10 changes: 5 additions & 5 deletions _compileRelease.ahk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
If (!FileExist(A_ScriptDir "\_TradeMacroMain.ahk")) {
RunWait, Run_TradeMacro.ahk
While (!FileExist(A_ScriptDir "\_TradeMacroMain.ahk")) {
Sleep, 500
}
#SingleInstance, force

RunWait, Run_TradeMacro.ahk -mergeonly
While (!FileExist(A_ScriptDir "\_TradeMacroMain.ahk")) {
Sleep, 500
}

SplitPath, A_AhkPath,, AhkDir
Expand Down
8 changes: 7 additions & 1 deletion resources/ahk/Merge_TradeMacro.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ If (InStr(arguments, "-nosplash", 0)) {
StartSplashScreen()
}

If (InStr(arguments, "-mergeonly", 0)) {
onlyMergeFiles := 1
}

/*
Set ProjectName to create user settings folder in A_MyDocuments
*/
Expand Down Expand Up @@ -88,7 +92,9 @@ FileAppend, %trade% , %scriptDir%\_TradeMacroMain.ahk
; set script hidden
FileSetAttrib, +H, %scriptDir%\_TradeMacroMain.ahk
; pass some parameters to TradeMacroInit
Run "%A_AhkPath%" "%scriptDir%\_TradeMacroMain.ahk" "%projectName%" "%userDirectory%" "%isDevelopmentVersion%" "%overwrittenFiles%" "isMergedScript" "%skipSplash%"
If (not onlyMergeFiles) {
Run "%A_AhkPath%" "%scriptDir%\_TradeMacroMain.ahk" "%projectName%" "%userDirectory%" "%isDevelopmentVersion%" "%overwrittenFiles%" "isMergedScript" "%skipSplash%"
}

ExitApp

Expand Down
6 changes: 3 additions & 3 deletions resources/ahk/TradeMacroInit.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ argumentOverwrittenFiles = %4%
If (!StrLen(argumentProjectName) > 0) {
argumentProjectName := "PoE-TradeMacro"
FilesToCopyToUserFolder := A_ScriptDir . "\resources\default_UserFiles"
argumentOverwrittenFiles := PoEScripts_HandleUserSettings(projectName, A_MyDocuments, projectName, FilesToCopyToUserFolder, A_ScriptDir)
argumentOverwrittenFiles := PoEScripts_HandleUserSettings(argumentProjectName, A_MyDocuments, argumentProjectName, FilesToCopyToUserFolder, A_ScriptDir)
argumentIsDevVersion := PoEScripts_isDevelopmentVersion(A_ScriptDir)
argumentUserDirectory := A_MyDocuments . "\" . projectName . isDevelopmentVersion

argumentUserDirectory := A_MyDocuments . "\" . argumentProjectName . argumentIsDevVersion
If (!PoEScripts_CreateTempFolder(A_ScriptDir, "PoE-TradeMacro")) {
ExitApp
}
Expand Down

0 comments on commit 6db798c

Please sign in to comment.