Skip to content

Commit

Permalink
v1.3.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
0mgRod committed Apr 5, 2024
1 parent b1625b9 commit ce0a5be
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# v1.3.0-beta.1
# v1.3.0-beta.1-2

- Added popup when feedback sent or an error occurred.
- Attempt to add MacOS and Android support
- Bugfixes
- Increased character variation for feedback menu
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "2.0.0-beta.23",
"version": "v1.2.3-beta.1",
"version": "v1.3.0-beta.2",
"gd": {
"android32": "2.205",
"win": "2.204"
Expand Down
30 changes: 25 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,35 @@ class GPFeedbackLayer : public CCLayer
.bodyRaw(payload)
.fetch("https://canary.discord.com/api/webhooks/1225440650988884029/NPsyWQuLi6x3GB-DymtlIvVIlzC0Gm0qocSxbq9wILUhnjZsGR5Rc6YEY2mEtdpvQ0x_")
.text()
.then([](std::string const& catgirl) {
std::cout << "i think i did it garage plus" << std::endl;
.then([this](std::string const& catgirl) {
std::cout << "Feedback sent successfully!" << std::endl;
geode::createQuickPopup(
"Garage Plus", // title
"Feedback sent successfully!", // content
"Exit", nullptr, // buttons
[this](auto, bool btn1) {
this->onClick(nullptr);
}
);


})
.expect([](std::string const& error) {
.expect([this](std::string const& error) {
std::cerr << "Failed to fetch anything: " << error << std::endl;
geode::createQuickPopup(
"Garage Plus", // title
"Failed to fetch anything: " + error, // content
"Retry", "Exit", // buttons
[this](auto, bool btn1) {
if (btn1) {
this->onFeedbackClick(nullptr);
} else {
this->onClick(nullptr);
}
}
);
});
}

size_t m_clicked = 0;

bool init()
{
Expand Down

0 comments on commit ce0a5be

Please sign in to comment.