Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Epic Installation Detection #19

Merged
merged 4 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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