Skip to content

Commit

Permalink
Updated version and switched to a main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JusKillmeQik committed Oct 19, 2021
1 parent aa85bdb commit d4ae539
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions LevelingGuide.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ If (skipUpdates = "False") {
versionFile = %A_ScriptDir%\filelist.txt
If (!FileExist(versionFile)) {
updatePLG := "True"
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/master/filelist.txt, %A_ScriptDir%\filelist.txt
oldVersion := "4.0.3"
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/main/filelist.txt, %A_ScriptDir%\filelist.txt
} Else {
FileReadLine, oldVersion, %A_ScriptDir%\filelist.txt, 1
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/master/filelist.txt, %A_ScriptDir%\filelist.txt
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/main/filelist.txt, %A_ScriptDir%\filelist.txt
FileReadLine, newVersion, %A_ScriptDir%\filelist.txt, 1
If (oldVersion != newVersion) {
updatePLG := "True"
Expand Down Expand Up @@ -130,13 +131,13 @@ If (skipUpdates = "False") {
If ( InStr(A_LoopReadLine,ignoreBuilds) || InStr(A_LoopReadLine,ignoreSeeds) ){
If (!FileExist(updateFile)) { ; Only download builds and seed images if they don't already exist
FileCreateDir, %downloadDirName%
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/master/%A_LoopReadLine%, %updateFile%
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/main/%A_LoopReadLine%, %updateFile%
}
} Else {
If (!FileExist(updateFile)) { ; If the file doesn't exist make sure to create the directory
FileCreateDir, %downloadDirName%
}
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/master/%A_LoopReadLine%, %updateFile%
UrlDownloadToFile, https://raw.githubusercontent.com/JusKillmeQik/PoE-Leveling-Guide/main/%A_LoopReadLine%, %updateFile%
}
progressPercent := 100 * (A_Index/progressWidth)
Progress, %progressPercent%
Expand Down
2 changes: 1 addition & 1 deletion filelist.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
4.0.4
4.1.0
965
.gitignore
LevelingGuide.ahk
Expand Down

0 comments on commit d4ae539

Please sign in to comment.