Skip to content

Commit

Permalink
Merge pull request #19 from djravine/Feature/DetectGameFolder
Browse files Browse the repository at this point in the history
Add Epic Installation Detection
  • Loading branch information
dhusemann authored Jul 12, 2022
2 parents 7f4fc74 + 638562f commit c3027da
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ userdetails.json
redeemcodelog.json
idlecombosettings.json
idlecombolog.txt
eos_loader_log.txt
*.exe
.vscode/settings.json
17 changes: 17 additions & 0 deletions IdleCombos.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@ global RedeemCodeLogFile := "redeemcodelog.json"
global JournalFile := "journal.json"
global CurrentSettings := []
global GameInstallDir := "C:\Program Files (x86)\Steam\steamapps\common\IdleChampions\"
global GameIDEpic := "40cb42e38c0b4a14a1bb133eb3291572"
global GameClientEpic := "C:\ProgramData\Epic\UnrealEngineLauncher\LauncherInstalled.dat"
global GameClientEpicLauncher := ""
if FileExist(GameClientEpic) {
FileRead, EpicJSONString, %GameClientEpic%
EpicJSONobj := JSON.parse(EpicJSONString)
for each, item in EpicJSONobj.InstallationList {
if item.AppName = GameIDEpic {
GameInstallDir := item.InstallLocation "\"
GameClientEpicLauncher := "com.epicgames.launcher://apps/" GameIDEpic "?action=launch&silent=true"
break
}
}
}
global WRLFile := GameInstallDir "IdleDragons_Data\StreamingAssets\downloaded_files\webRequestLog.txt"
global DictionaryFile := "https://raw.githubusercontent.com/dhusemann/idlecombos/master/idledict.ahk"
global LocalDictionary := "idledict.ahk"
Expand All @@ -77,6 +91,9 @@ global ICSettingsFile := A_AppData
StringTrimRight, ICSettingsFile, ICSettingsFile, 7
ICSettingsFile := ICSettingsFile "LocalLow\Codename Entertainment\Idle Champions\localSettings.json"
global GameClient := GameInstallDir "IdleDragons.exe"
if GameClientEpicLauncher != ""
GameClient := GameClientEpicLauncher


;Settings globals
global ServerName := "ps7"
Expand Down

0 comments on commit c3027da

Please sign in to comment.