Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus committed May 30, 2022
1 parent 709a7a7 commit c79e8b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void __fastcall CCLabelBMFont_setCString_H(CCLabelBMFont* self, void*, const cha
if(!enabled ||
// if we have megahack installed, don't change the "Progress Bar" text,
// let mh change it to "Bar" first
mhLoaded() && strcmp(newString, "Progress Bar") == 0 ||
parent == nullptr && mhLoaded() && strcmp(newString, "Progress Bar") == 0 ||
// don't uwuify in levels
!enabledInLevels && (ignoreUwuifying || parent != nullptr && typeid(*parent) == typeid(gd::GameObject))) {
CCLabelBMFont_setString(self, newString, needUpdateLabel);
Expand Down
2 changes: 2 additions & 0 deletions src/uwuifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ namespace uwuifier {
inline bool getChance(double chance) { return std::generate_canonical<double, 10>(gen) < chance; }

bool isCaps(const std::string& text) {
if(text.size() <= 1)
return false;
for(auto character : text)
if(islower(character))
return false;
Expand Down

0 comments on commit c79e8b4

Please sign in to comment.