From cf3e8d26b376f274ee44f6d52a4ad036cf2f73d5 Mon Sep 17 00:00:00 2001 From: Marko Camandioti Date: Wed, 16 Jul 2025 12:56:51 +0200 Subject: [PATCH 1/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4cb22b6..6b3f3ca 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # FakeGDMod -This is where she makes a mod. +This is where he makes a mod. the mod's logo From 78735b252fa3f9cb7b673f6de7366641a5e7337b Mon Sep 17 00:00:00 2001 From: Marko Camandioti Date: Wed, 16 Jul 2025 12:59:54 +0200 Subject: [PATCH 2/8] Update main.cpp --- src/main.cpp | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 801d183..be1c30f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,6 +6,11 @@ using namespace geode::prelude; #include #include #include +#include +#include +#include +#include + template inline bool instanceof(const T* ptr) { @@ -33,10 +38,12 @@ class modCheck if (Mod::get()->getSettingValue("modType") == 1) { Check->showSuccessMessage("Success! Moderator access granted."); + Mod::get()->setSavedValue("alreadyHasMod", true); } if (Mod::get()->getSettingValue("modType") == 2) { Check->showSuccessMessage("Success! Elder Moderator \n access granted."); + Mod::get()->setSavedValue("alreadyHasMod", true); } } } @@ -71,22 +78,26 @@ class $modify(SupportLayer) { void onRequestAccess(CCObject* sender) { auto GM = GameManager::sharedState(); + if (Mod::get()->getSavedValue("alreadyHasMod", false)) { + FLAlertLayer::create("Granted", "This account has access to the rating suggestion system.", "OK")->show(); + } else { if (Mod::get()->getSettingValue("modType") == 3) { SupportLayer::onRequestAccess(sender); GM->m_hasRP = 0; } else - { + { UploadActionPopup* popup = UploadActionPopup::create(nullptr, "Loading..."); popup->show(); popup->runAction((CCSequence::create( - CCDelayTime::create(1), + CCDelayTime::create(0.2), CCCallFunc::create(this, callfunc_selector(modCheck::DelayMod)), nullptr ))); GM->m_hasRP = Mod::get()->getSettingValue("modType"); } + } } }; @@ -95,12 +106,14 @@ class $modify(ProfilePage) void loadPageFromUserInfo(GJUserScore* p0) { int type = Mod::get()->getSettingValue("modType"); - if (this->m_ownProfile) - { - switch(type) { - case 1: p0->m_modBadge = type; break; - case 2: p0->m_modBadge = type; break; - case 3: p0->m_modBadge = type; break; + if (Mod::get()->getSavedValue("alreadyHasMod", false)) { + if ((this->m_ownProfile) || (this->m_score && this->m_score->m_userID == p0->m_userID)) + { + switch(type) { + case 1: p0->m_modBadge = type; break; + case 2: p0->m_modBadge = type; break; + case 3: p0->m_modBadge = type; break; + } } } ProfilePage::loadPageFromUserInfo(p0); @@ -117,7 +130,7 @@ class $modify(RateStarsLayer) UploadActionPopup* popup = UploadActionPopup::create(nullptr, "Sending rating..."); popup->show(); popup->runAction((CCSequence::create( - CCDelayTime::create(1), + CCDelayTime::create(0.1), CCCallFunc::create(this, callfunc_selector(modCheck::DelayRate)), nullptr ))); @@ -135,7 +148,7 @@ class $modify(RateDemonLayer) UploadActionPopup* popup = UploadActionPopup::create(nullptr, "Sending rating..."); popup->show(); popup->runAction((CCSequence::create( - CCDelayTime::create(1), + CCDelayTime::create(0.1), CCCallFunc::create(this, callfunc_selector(modCheck::DelayRate)), nullptr ))); From 99e6f305de403b37596898fddf59ab8a3afdd9eb Mon Sep 17 00:00:00 2001 From: Marko Camandioti Date: Wed, 16 Jul 2025 16:52:04 +0200 Subject: [PATCH 3/8] Update mod.json --- mod.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.json b/mod.json index 3e7b9ab..23b0c89 100644 --- a/mod.json +++ b/mod.json @@ -1,5 +1,5 @@ { - "geode": "4.1.2", + "geode": "4.6.3", "gd": { "win": "2.2074", "android": "2.2074", From 2a2c4136c4a89ef7ab1a9220ab6cab15bd23f14d Mon Sep 17 00:00:00 2001 From: Marko Camandioti Date: Wed, 16 Jul 2025 17:27:53 +0200 Subject: [PATCH 4/8] Update main.cpp --- src/main.cpp | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index be1c30f..83bda52 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,8 +8,9 @@ using namespace geode::prelude; #include #include #include -#include +#include #include +#include template @@ -81,7 +82,7 @@ class $modify(SupportLayer) { if (Mod::get()->getSavedValue("alreadyHasMod", false)) { FLAlertLayer::create("Granted", "This account has access to the rating suggestion system.", "OK")->show(); } else { - if (Mod::get()->getSettingValue("modType") == 3) + if (Mod::get()->getSettingValue("modType") >= 3) { SupportLayer::onRequestAccess(sender); GM->m_hasRP = 0; @@ -101,6 +102,24 @@ class $modify(SupportLayer) { } }; + +class $modify(CommentCell) { + void loadFromComment(GJComment* p0) { + auto commentAccID = p0->m_accountID; + if (GJAccountManager::sharedState()->m_accountID == commentAccID) { + p0->m_modBadge = Mod::get()->getSettingValue("modType"); + } + CommentCell::loadFromComment(p0); + } + virtual void draw() { + auto commentAccID = this->m_comment->m_accountID; + if (GJAccountManager::sharedState()->m_accountID == commentAccID) { + this->m_comment->m_modBadge = Mod::get()->getSettingValue("modType"); + } + CommentCell::draw(); + } +}; + class $modify(ProfilePage) { void loadPageFromUserInfo(GJUserScore* p0) @@ -113,6 +132,7 @@ class $modify(ProfilePage) case 1: p0->m_modBadge = type; break; case 2: p0->m_modBadge = type; break; case 3: p0->m_modBadge = type; break; + default: p0->m_modBadge = 0; break; } } } From 2c9fb04a3710338d614fc29a3ad5d297059a257a Mon Sep 17 00:00:00 2001 From: Marko Camandioti Date: Wed, 16 Jul 2025 17:28:12 +0200 Subject: [PATCH 5/8] Update mod.json --- mod.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod.json b/mod.json index 23b0c89..a26dbe3 100644 --- a/mod.json +++ b/mod.json @@ -14,11 +14,11 @@ "settings": { "modType": { "name": "Moderator Type", - "description": "you can choose 1 = Moderator, 2 = Elder Moderator, 3 = Leaderboard Moderator", + "description": "you can choose 1 = Moderator, 2 = Elder Moderator, 3 = Leaderboard Moderator, 4 = No Moderator", "type": "int", - "default": 1, + "default": 4, "min": 1, - "max": 3 + "max": 4 } }, "links": { From d25459c513bed645e958ebcbfabbc0b934b8f2e4 Mon Sep 17 00:00:00 2001 From: icecream2015p Date: Wed, 30 Jul 2025 12:51:41 +0900 Subject: [PATCH 6/8] Update changelog.md --- changelog.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 2190ea8..b71540b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,9 @@ # FakeGDMod Changelog +## v1.0.2 +- Comments are now displayed as moderators ## v1.0.1 (2025-01-08) - Geode v4.1.0 support - Geometry Dash 2.207 support - macOS support! ## v1.0.0 (2024-09-08) -- Initial release \ No newline at end of file +- Initial release From a2a409174f0f1e8adbf637f91985decf9357c09b Mon Sep 17 00:00:00 2001 From: icecream2015p Date: Wed, 30 Jul 2025 12:52:07 +0900 Subject: [PATCH 7/8] Update changelog.md --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index b71540b..b9456f8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,5 @@ # FakeGDMod Changelog -## v1.0.2 +## v1.0.2 (2025-07-30) - Comments are now displayed as moderators ## v1.0.1 (2025-01-08) - Geode v4.1.0 support From 9d9d74d28fd872437318001525fde969385b7e6d Mon Sep 17 00:00:00 2001 From: icecream2015p Date: Wed, 30 Jul 2025 12:52:27 +0900 Subject: [PATCH 8/8] Update mod.json --- mod.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.json b/mod.json index a26dbe3..3c71060 100644 --- a/mod.json +++ b/mod.json @@ -26,7 +26,7 @@ "community": "https://discord.gg/gXg8w4xJDA" }, "name": "FakeGDMod", - "version": "v1.0.1", + "version": "v1.0.2", "developer": "BitZ", "description": "A cool mod that make you a fake moderator" }