Skip to content

Commit c3055bd

Browse files
committed
:(
1 parent 71505bd commit c3055bd

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

src/main.cpp

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ float compactEndscreenFallbackPosition = CCDirector::get()->getWinSize().width *
3434
std::ifstream file(pathRogers);
3535
std::string technoblade;
3636
while (std::getline(file, technoblade)) {
37-
quotes.push_back(fmt::format("\"{}\"", technoblade));
37+
quotes.push_back(fmt::format("''{}''", technoblade));
3838
} // technically i can write two one-time use boolean variables to allow people to toggle these things on and off as they please without the quotes adding themselves multiple times into the vector, but i'd rather add the "restart required" barrier just to be extra safe
3939
}
4040

@@ -264,23 +264,14 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
264264
}
265265
#endif
266266

267-
float fraction = 228.f / strlen(randomString);
268-
float scale = 0.36f * fraction;
269-
// if (fraction > 1.f) { scale = 1.f; }
270-
// log::info("---------");
271-
// log::info("randomString: {}", randomString);
272-
// log::info("scale: {}", scale);
273-
// log::info("strlen(randomString): {}", strlen(randomString));
274-
// log::info("fraction: {}", fraction);
275-
// log::info("scale > Mod::get()->getSettingValue<double>(\"maxScale\"): {}", scale > Mod::get()->getSettingValue<double>("maxScale"));
276-
// log::info("---------");
267+
float scale = 0.36f * 228.f / strlen(randomString);
277268
if (strcmp("BELIEVE", randomString) == 0) { scale = 1.5f; }
278269
else if (strcmp("endTextLabel->setString(randomString.c_str(), true);", randomString) == 0) { scale = 0.4f;}
279270
else if (scale > Mod::get()->getSettingValue<double>("maxScale")) { scale = Mod::get()->getSettingValue<double>("maxScale"); }
280-
#ifdef GEODE_IS_MOBILE
281-
std::regex quotePattern("\".+\"");
282-
if (std::regex_match(std::string(randomString), quotePattern)) { scale = scale * .5f; }
283-
#endif
271+
// #ifdef GEODE_IS_MOBILE
272+
// std::regex quotePattern("\".+\"");
273+
// if (std::regex_match(std::string(randomString), quotePattern)) { scale = scale * .5f; }
274+
// #endif
284275

285276
endTextLabel->setScale(scale);
286277
endTextLabel->setWidth(336.f); // width of end screen minus 20px

0 commit comments

Comments
 (0)