-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <Geode/modify/FLAlertLayer.hpp> | ||
#include "Utils.hpp" | ||
|
||
#define PREFERRED_HOOK_PRIO (-2123456789) | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify(MyFLAlertLayer, FLAlertLayer) { | ||
static void onModify(auto & self) | ||
{ | ||
(void) self.setHookPriority("FLAlertLayer::init", PREFERRED_HOOK_PRIO); | ||
} | ||
bool init(FLAlertLayerProtocol* delegate, char const* title, gd::string desc, char const* btn1, char const* btn2, float width, bool scroll, float height, float textScale) { | ||
const std::string& titleAsString = title; | ||
const std::string& descAsString = desc; | ||
if (!utils::string::contains(titleAsString, "Playlist Mode") && !utils::string::contains(descAsString, "Playlist Mode") && !utils::string::contains(descAsString, "Original idea by TheKevinner.") && !utils::string::contains(descAsString, "Known issues")) { | ||
return FLAlertLayer::init(delegate, title, desc, btn1, btn2, width, scroll, height, textScale); | ||
} | ||
return FLAlertLayer::init(delegate, title, desc, btn1, btn2, 420.f, true, 320.f, 1.0f); | ||
} | ||
}; |
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