forked from aRTy42/POE-ItemInfo
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added client language check * fixed poe.ninja api url * timeouts, improved StartupLog, update/notes
- Loading branch information
Showing
11 changed files
with
89 additions
and
13 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
PoEScripts_CheckCorrectClientLanguage() { | ||
iniPath := A_MyDocuments . "\My Games\Path of Exile\" | ||
configs := [] | ||
productionIni := iniPath . "production_Config.ini" | ||
betaIni := iniPath . "beta_Config.ini" | ||
|
||
configs.push(productionIni) | ||
configs.push(betaIni) | ||
If (not FileExist(productionIni) and not FileExist(betaIni)) { | ||
Loop %iniPath%\*.ini | ||
{ | ||
configs.push(iniPath . A_LoopFileName) | ||
} | ||
} | ||
|
||
wrongLanguage := false | ||
readFile := "" | ||
For key, val in configs { | ||
IniRead, language, %val%, LANGUAGE, language | ||
If (language != "ERROR") { | ||
If (language != "en") { | ||
wrongLanguage := true | ||
} | ||
RegExMatch(val, "i)([^\\]+)\.[^\\]+$", readFile) | ||
Break | ||
} | ||
} | ||
|
||
If (wrongLanguage) { | ||
msg := "It seems that you aren't using 'English' as your game clients language, according to the file '" readFile "'." "`n`n" | ||
msg .= "As long as GGG doesn't add a way to get the items data in english when using different game clients, this script won't work with those languages." "`n`n" | ||
msg .= "Please change your language or click 'continue' if you want to start the script anyway." | ||
|
||
MsgBox, 0x1012, Wrong PoE Game Client Language, % msg | ||
|
||
IfMsgBox, Ignore | ||
{ | ||
Return 1 | ||
} | ||
IfMsgBox, Retry | ||
{ | ||
PoEScripts_CheckCorrectClientLanguage() | ||
} | ||
IfMsgBox, Cancel | ||
{ | ||
Return 0 | ||
} | ||
IfMsgBox, Abort | ||
{ | ||
Return 0 | ||
} | ||
} | ||
Return 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
TradeReleaseVersion := "v2.5.6" | ||
TradeReleaseVersion := "v2.5.7" | ||
TradeAHKVersionRequired := "1.1.26.00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters