Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus committed May 28, 2022
1 parent 07134cb commit 59c8b7f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ inline void hash_combine(std::size_t& seed, const T& v) {
}

inline bool getChance(int chance) { return std::rand() % 10000 < chance; }
inline const char* chanceToCString(int chance) {
char array[7] = { '\0', '\0', '\0', '\0', '\0', '\0', '\0' };
sprintf_s(array, "%.2f", chance / 100.0);
return (const char*)&array[0];
}
inline int cstringToChance(const char* cstring) {
return (int)(atof(cstring) * 100.0);
}

std::string newString = std::string();
const char* uwuify(const char* originalString) {
Expand Down Expand Up @@ -170,7 +162,7 @@ void (__thiscall* CCLabelBMFont_setString)(CCLabelBMFont* self, const char *newS
void __fastcall CCLabelBMFont_setString_H(CCLabelBMFont* self, void*, const char *newString, bool needUpdateLabel) {
auto parent = self->getParent();
// same as comment on the hook below
if(!enabled || !enabledInLevels && (ignoreUwuifying || parent != nullptr && /*parent->getObjType() == 13*/ typeid(*parent) == typeid(gd::GameObject))) {
if(!enabled || !enabledInLevels && (ignoreUwuifying || parent != nullptr && typeid(*parent) == typeid(gd::GameObject))) {
CCLabelBMFont_setString(self, newString, needUpdateLabel);
return;
}
Expand Down

0 comments on commit 59c8b7f

Please sign in to comment.