mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
add missing forward compat hook disables, add notice on utils::restart
This commit is contained in:
parent
456075a2cb
commit
824efbf37f
3 changed files with 6 additions and 0 deletions
|
@ -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());
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue