add missing forward compat hook disables, add notice on utils::restart

This commit is contained in:
matcool 2024-02-12 16:03:38 -03:00
parent 456075a2cb
commit 824efbf37f
3 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,8 @@ using namespace geode::prelude;
// Fixes the names not showing up on profile links
struct CustomProfilePage : Modify<CustomProfilePage, ProfilePage> {
GEODE_FORWARD_COMPAT_DISABLE_HOOKS("ProfilePage fix")
virtual TodoReturn getUserInfoFinished(GJUserScore* info) {
ProfilePage::getUserInfoFinished(info);
m_usernameLabel->setString(info->m_userName.c_str());

View file

@ -228,6 +228,8 @@ void geode::utils::game::exit() {
void geode::utils::game::restart() {
// TODO: mat
// TODO: be VERY careful before enabling this again, this function is called in platform/windows/main.cpp,
// before we even check if we are in forward compatibility mode or not.
#if 0
if (CCApplication::sharedApplication() &&
(GameManager::get()->m_playLayer || GameManager::get()->m_levelEditorLayer)) {

View file

@ -14,6 +14,8 @@ static constexpr int INPUT_TAG = 0x80082;
#include <Geode/modify/CCTextInputNode.hpp>
struct TextInputNodeFix : Modify<TextInputNodeFix, CCTextInputNode> {
GEODE_FORWARD_COMPAT_DISABLE_HOOKS("TextInputNode fix")
bool ccTouchBegan(cocos2d::CCTouch* touch, cocos2d::CCEvent* event) {
if (this->getTag() != INPUT_TAG) return CCTextInputNode::ccTouchBegan(touch, event);