Skip to content

Commit 897cac2

Browse files
committed
prompt on new releases, readme update
1 parent 17d857d commit 897cac2

3 files changed

Lines changed: 34 additions & 3 deletions

File tree

KBotExt/Config.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ struct Settings
2020
bool streamProof = false;
2121
bool debugger = false;
2222
std::string currentDebugger;
23+
std::vector<std::string>ignoredVersions;
2324

2425
struct
2526
{
@@ -130,6 +131,12 @@ class Config
130131
root["gameTab"]["dodgeOnBan"] = S.gameTab.dodgeOnBan;
131132
root["gameTab"]["backupId"] = S.gameTab.backupId;
132133

134+
{
135+
root["ignoredVersions"] = Json::Value(Json::arrayValue);
136+
for (const std::string& version : S.ignoredVersions)
137+
root["ignoredVersions"].append(version);
138+
}
139+
133140
if (S.bAddFont)
134141
{
135142
S.bAddFont = false;
@@ -198,6 +205,14 @@ class Config
198205
if (auto t = root["gameTab"]["dodgeOnBan"]; !t.empty()) S.gameTab.dodgeOnBan = t.asBool();
199206
if (auto t = root["gameTab"]["backupId"]; !t.empty()) S.gameTab.backupId = t.asInt();
200207

208+
if (root["ignoredVersions"].isArray() && !root["ignoredVersions"].empty())
209+
{
210+
for (Json::Value::ArrayIndex i = 0; i < root["ignoredVersions"].size(); i++)
211+
{
212+
S.ignoredVersions.emplace_back(root["ignoredVersions"][i].asString());
213+
}
214+
}
215+
201216
if (root["fonts"].isArray() && !root["fonts"].empty())
202217
{
203218
for (Json::Value::ArrayIndex i = 0; i < root["fonts"].size(); i++)

KBotExt/Misc.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Misc
1212
{
1313
public:
1414

15-
static inline std::string programVersion = "1.4.0";
15+
static inline std::string programVersion = "1.5.0";
1616

1717
static void LaunchLegacyClient()
1818
{
@@ -75,6 +75,20 @@ class Misc
7575
}
7676
}
7777
}
78+
if (latestTag != Misc::programVersion
79+
&& std::find(S.ignoredVersions.begin(), S.ignoredVersions.end(), latestTag) == S.ignoredVersions.end())
80+
{
81+
const auto status = MessageBoxA(0, "Open download website?\nCancel to ignore this version forever", "New minor update available", MB_YESNOCANCEL | MB_SETFOREGROUND);
82+
if (status == IDYES)
83+
{
84+
ShellExecuteW(0, 0, L"https://github.com/KebsCS/KBotExt/releases/latest", 0, 0, SW_SHOW);
85+
}
86+
else if (status == IDCANCEL)
87+
{
88+
S.ignoredVersions.emplace_back(latestTag);
89+
Config::Save();
90+
}
91+
}
7892
}
7993
}
8094

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
![Example](https://i.imgur.com/2I4dHSg.png)
1+
![Example](https://i.imgur.com/Q5MsDE4.png)
22

3-
[More screenshots](https://imgur.com/a/eUpsstC)
3+
[More screenshots](https://imgur.com/a/kGXmArZ)
44

55

66
## Technologies used
@@ -27,11 +27,13 @@
2727
* Force close the client instantly
2828
* Mass delete all friends sorted by folders
2929
* Accept or delete all friend requests
30+
* Set custom in-game minimap scale
3031
* Disenchant any loot you want with 1 click
3132
* Champion name to id lookup
3233
* Send any custom request or invoke
3334
* Stream proof
3435
* IFEO debugger for using HTTP debuggers
36+
* Log cleaner
3537
* Automatically saves your preferences
3638
* Customizable font and window size
3739
* 1 click login with automated client open

0 commit comments

Comments
 (0)