mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 09:27:57 -05:00
some header fixings and more compile time improvements
This commit is contained in:
parent
97456db101
commit
070474dd18
50 changed files with 92 additions and 91 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
||||||
- name: "macOS"
|
- name: "macOS"
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
prefixes: 'PATH="/usr/local/opt/ccache/libexec:$PATH"'
|
prefixes: 'PATH="/usr/local/opt/ccache/libexec:$PATH"'
|
||||||
extra_flags: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON"
|
extra_flags: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
|
||||||
out_paths: './bin/nightly/Geode.dylib ./bin/nightly/GeodeBootstrapper.dylib'
|
out_paths: './bin/nightly/Geode.dylib ./bin/nightly/GeodeBootstrapper.dylib'
|
||||||
name: ${{ matrix.config.name }}
|
name: ${{ matrix.config.name }}
|
||||||
runs-on: ${{ matrix.config.os }}
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
|
|
@ -39,21 +39,21 @@ add_custom_target(CodegenRun ALL
|
||||||
COMMAND Codegen ${GEODE_TARGET_PLATFORM} bindings ${GEODE_CODEGEN_PATH}
|
COMMAND Codegen ${GEODE_TARGET_PLATFORM} bindings ${GEODE_CODEGEN_PATH}
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
COMMENT "Run Codegen"
|
COMMENT "Run Codegen"
|
||||||
BYPRODUCTS ${GEODE_CODEGEN_PATH}/GeneratedSource.cpp
|
BYPRODUCTS ${GEODE_CODEGEN_PATH}/Geode/GeneratedSource.cpp
|
||||||
)
|
)
|
||||||
add_dependencies(${PROJECT_NAME} CodegenRun)
|
add_dependencies(${PROJECT_NAME} CodegenRun)
|
||||||
add_dependencies(CodegenRun Codegen)
|
add_dependencies(CodegenRun Codegen)
|
||||||
|
|
||||||
# Hacky way to supress the not generated error
|
# Hacky way to supress the not generated error
|
||||||
if (NOT EXISTS ${GEODE_CODEGEN_PATH}/GeneratedSource.cpp)
|
if (NOT EXISTS ${GEODE_CODEGEN_PATH}/Geode/GeneratedSource.cpp)
|
||||||
make_directory(${GEODE_CODEGEN_PATH})
|
make_directory(${GEODE_CODEGEN_PATH})
|
||||||
file(TOUCH ${GEODE_CODEGEN_PATH}/GeneratedSource.cpp)
|
file(TOUCH ${GEODE_CODEGEN_PATH}/Geode/GeneratedSource.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(${PROJECT_NAME} INTERFACE ${GEODE_CODEGEN_PATH}/GeneratedSource.cpp)
|
target_sources(${PROJECT_NAME} INTERFACE ${GEODE_CODEGEN_PATH}/Geode/GeneratedSource.cpp)
|
||||||
target_include_directories(${PROJECT_NAME} INTERFACE ${GEODE_CODEGEN_PATH}/..)
|
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} INTERFACE
|
target_include_directories(${PROJECT_NAME} INTERFACE
|
||||||
|
${GEODE_CODEGEN_PATH}
|
||||||
${GEODE_LOADER_PATH}/include
|
${GEODE_LOADER_PATH}/include
|
||||||
${GEODE_LOADER_PATH}/include/Geode/cocos/
|
${GEODE_LOADER_PATH}/include/Geode/cocos/
|
||||||
${GEODE_LOADER_PATH}/include/Geode/cocos/cocos2dx
|
${GEODE_LOADER_PATH}/include/Geode/cocos/cocos2dx
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
There's nothing worse than having to read thousands of words just to see what some library's code actually looks like, so instead, here's a **Hello World** in Geode right off the bat:
|
There's nothing worse than having to read thousands of words just to see what some library's code actually looks like, so instead, here's a **Hello World** in Geode right off the bat:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include <Geode/Bindings.hpp>
|
#include <Geode/bindings.hpp>
|
||||||
#include <codegenned/modify/MenuLayer.hpp>
|
#include <Geode/modify/MenuLayer.hpp>
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace { namespace format_strings {
|
||||||
#include <Geode/c++stl/gdstdlib.hpp>
|
#include <Geode/c++stl/gdstdlib.hpp>
|
||||||
#include <cocos2d.h>
|
#include <cocos2d.h>
|
||||||
#include <cocos-ext.h>
|
#include <cocos-ext.h>
|
||||||
#include <codegenned/GeneratedPredeclare.hpp>
|
#include <Geode/GeneratedPredeclare.hpp>
|
||||||
#include <Geode/Enums.hpp>
|
#include <Geode/Enums.hpp>
|
||||||
|
|
||||||
)GEN";
|
)GEN";
|
||||||
|
|
|
@ -16,7 +16,7 @@ int main(int argc, char** argv) try {
|
||||||
|
|
||||||
chdir(argv[2]);
|
chdir(argv[2]);
|
||||||
|
|
||||||
ghc::filesystem::path writeDir = argv[3];
|
auto writeDir = ghc::filesystem::path(argv[3]) / "Geode";
|
||||||
ghc::filesystem::create_directories(writeDir);
|
ghc::filesystem::create_directories(writeDir);
|
||||||
ghc::filesystem::create_directories(writeDir / "modify");
|
ghc::filesystem::create_directories(writeDir / "modify");
|
||||||
ghc::filesystem::create_directories(writeDir / "binding");
|
ghc::filesystem::create_directories(writeDir / "binding");
|
||||||
|
|
|
@ -123,6 +123,7 @@ target_precompile_headers(${PROJECT_NAME} PRIVATE
|
||||||
# "${CMAKE_CURRENT_SOURCE_DIR}/include/Geode/Bindings.hpp"
|
# "${CMAKE_CURRENT_SOURCE_DIR}/include/Geode/Bindings.hpp"
|
||||||
# "${CMAKE_CURRENT_SOURCE_DIR}/include/Geode/Modify.hpp"
|
# "${CMAKE_CURRENT_SOURCE_DIR}/include/Geode/Modify.hpp"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/Geode/cocos/cocos2dx/include/cocos2d.h"
|
"${CMAKE_CURRENT_SOURCE_DIR}/include/Geode/cocos/cocos2dx/include/cocos2d.h"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/include/Geode/cocos/extensions/cocos-ext.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create launcher
|
# Create launcher
|
||||||
|
|
|
@ -22,4 +22,4 @@ namespace geode::core::meta {}
|
||||||
#define CLASSPARAM(...)
|
#define CLASSPARAM(...)
|
||||||
#define STRUCTPARAM(...)
|
#define STRUCTPARAM(...)
|
||||||
|
|
||||||
#include <codegenned/GeneratedBinding.hpp>
|
#include <Geode/GeneratedBinding.hpp>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <Geode/DefaultInclude.hpp>
|
#include <Geode/DefaultInclude.hpp>
|
||||||
|
|
||||||
#include <codegenned/GeneratedModify.hpp>
|
#include <Geode/GeneratedModify.hpp>
|
||||||
#include "modify/Field.hpp"
|
#include "modify/Field.hpp"
|
||||||
#include "modify/InternalMacros.hpp"
|
#include "modify/InternalMacros.hpp"
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
|
|
||||||
namespace geode::modifier {
|
namespace geode::modifier {
|
||||||
struct addresses {
|
struct addresses {
|
||||||
#include <codegenned/GeneratedAddress.hpp>
|
#include <Geode/GeneratedAddress.hpp>
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,6 @@ namespace geode::modifier {
|
||||||
>> {
|
>> {
|
||||||
constexpr static inline bool value = true;
|
constexpr static inline bool value = true;
|
||||||
};
|
};
|
||||||
#include <codegenned/GeneratedCompare.hpp>
|
#include <Geode/GeneratedCompare.hpp>
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
|
|
||||||
namespace geode::modifier {
|
namespace geode::modifier {
|
||||||
struct types {
|
struct types {
|
||||||
#include <codegenned/GeneratedType.hpp>
|
#include <Geode/GeneratedType.hpp>
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ namespace geode::modifier {
|
||||||
struct wrap {
|
struct wrap {
|
||||||
GEODE_WRAPPER_FOR_IDENTIFIER(constructor)
|
GEODE_WRAPPER_FOR_IDENTIFIER(constructor)
|
||||||
GEODE_WRAPPER_FOR_IDENTIFIER(destructor)
|
GEODE_WRAPPER_FOR_IDENTIFIER(destructor)
|
||||||
#include <codegenned/GeneratedWrapper.hpp>
|
#include <Geode/GeneratedWrapper.hpp>
|
||||||
};
|
};
|
||||||
|
|
||||||
// template <template<class, class, class=void> class Identifier, class Base, class Derived, class ...Types>
|
// template <template<class, class, class=void> class Identifier, class Base, class Derived, class ...Types>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "BasedButtonSprite.hpp"
|
#include "BasedButtonSprite.hpp"
|
||||||
#include <codegenned/binding/CCMenuItemToggler.hpp>
|
#include <Geode/binding/CCMenuItemToggler.hpp>
|
||||||
|
|
||||||
#pragma warning(disable : 4275)
|
#pragma warning(disable : 4275)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Popup.hpp"
|
#include "Popup.hpp"
|
||||||
#include "InputNode.hpp"
|
#include "InputNode.hpp"
|
||||||
|
|
||||||
#include <codegenned/binding/TextInputDelegate.hpp>
|
#include <Geode/binding/TextInputDelegate.hpp>
|
||||||
|
|
||||||
namespace geode {
|
namespace geode {
|
||||||
class ColorPickPopupDelegate {
|
class ColorPickPopupDelegate {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/TableViewCell.hpp>
|
#include <Geode/binding/TableViewCell.hpp>
|
||||||
#include <codegenned/binding/CustomListView.hpp>
|
#include <Geode/binding/CustomListView.hpp>
|
||||||
|
|
||||||
namespace geode {
|
namespace geode {
|
||||||
class GEODE_DLL GenericListCell : public TableViewCell {
|
class GEODE_DLL GenericListCell : public TableViewCell {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/FLAlertLayerProtocol.hpp>
|
#include <Geode/binding/FLAlertLayerProtocol.hpp>
|
||||||
#include "TextRenderer.hpp"
|
#include "TextRenderer.hpp"
|
||||||
#include "ScrollLayer.hpp"
|
#include "ScrollLayer.hpp"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/FLAlertLayer.hpp>
|
#include <Geode/binding/FLAlertLayer.hpp>
|
||||||
#include <codegenned/binding/CCMenuItemSpriteExtra.hpp>
|
#include <Geode/binding/CCMenuItemSpriteExtra.hpp>
|
||||||
|
|
||||||
namespace geode {
|
namespace geode {
|
||||||
template<typename... InitArgs>
|
template<typename... InitArgs>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/CCContentLayer.hpp>
|
#include <Geode/binding/CCContentLayer.hpp>
|
||||||
#include <codegenned/binding/CCScrollLayerExt.hpp>
|
#include <Geode/binding/CCScrollLayerExt.hpp>
|
||||||
|
|
||||||
namespace geode {
|
namespace geode {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/CCMenuItemSpriteExtra.hpp>
|
#include <Geode/binding/CCMenuItemSpriteExtra.hpp>
|
||||||
|
|
||||||
namespace geode {
|
namespace geode {
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
// proxy forwards
|
// proxy forwards
|
||||||
#include <codegenned/modify/CCNode.hpp>
|
#include <Geode/modify/CCNode.hpp>
|
||||||
class $modify(ProxyCCNode, CCNode) {
|
class $modify(ProxyCCNode, CCNode) {
|
||||||
virtual CCObject* getUserObject() {
|
virtual CCObject* getUserObject() {
|
||||||
return GeodeNodeMetadata::set(this)->m_userObject;
|
return GeodeNodeMetadata::set(this)->m_userObject;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
#include <codegenned/modify/LoadingLayer.hpp>
|
#include <Geode/modify/LoadingLayer.hpp>
|
||||||
class $modify(CustomLoadingLayer, LoadingLayer) {
|
class $modify(CustomLoadingLayer, LoadingLayer) {
|
||||||
bool init(bool fromReload) {
|
bool init(bool fromReload) {
|
||||||
if (!LoadingLayer::init(fromReload))
|
if (!LoadingLayer::init(fromReload))
|
||||||
|
|
|
@ -128,7 +128,7 @@ static void updateIndexProgress(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <codegenned/modify/MenuLayer.hpp>
|
#include <Geode/modify/MenuLayer.hpp>
|
||||||
class $modify(CustomMenuLayer, MenuLayer) {
|
class $modify(CustomMenuLayer, MenuLayer) {
|
||||||
void destructor() {
|
void destructor() {
|
||||||
g_geodeButton = nullptr;
|
g_geodeButton = nullptr;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
#include <codegenned/modify/CCTouchDispatcher.hpp>
|
#include <Geode/modify/CCTouchDispatcher.hpp>
|
||||||
class $modify(CCTouchDispatcher) {
|
class $modify(CCTouchDispatcher) {
|
||||||
void addTargetedDelegate(CCTouchDelegate *delegate, int priority, bool swallowsTouches) {
|
void addTargetedDelegate(CCTouchDelegate *delegate, int priority, bool swallowsTouches) {
|
||||||
m_bForcePrio = false;
|
m_bForcePrio = false;
|
||||||
|
|
|
@ -46,14 +46,14 @@ class $modify(CCUtility##HandlerTypeinfoFix, CCUtility##Handler) {
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <codegenned/modify/CCKeypadHandler.hpp>
|
#include <Geode/modify/CCKeypadHandler.hpp>
|
||||||
HandlerFixFor(CCKeypad);
|
HandlerFixFor(CCKeypad);
|
||||||
#include <codegenned/modify/CCKeyboardHandler.hpp>
|
#include <Geode/modify/CCKeyboardHandler.hpp>
|
||||||
HandlerFixFor(CCKeyboard);
|
HandlerFixFor(CCKeyboard);
|
||||||
#include <codegenned/modify/CCMouseHandler.hpp>
|
#include <Geode/modify/CCMouseHandler.hpp>
|
||||||
HandlerFixFor(CCMouse);
|
HandlerFixFor(CCMouse);
|
||||||
|
|
||||||
#include <codegenned/modify/CCTargetedTouchHandler.hpp>
|
#include <Geode/modify/CCTargetedTouchHandler.hpp>
|
||||||
class $modify(CCTargetedTouchHandlerTypeinfoFix, CCTargetedTouchHandler) {
|
class $modify(CCTargetedTouchHandlerTypeinfoFix, CCTargetedTouchHandler) {
|
||||||
void destructor() {
|
void destructor() {
|
||||||
if (m_pDelegate) {
|
if (m_pDelegate) {
|
||||||
|
@ -100,7 +100,7 @@ class $modify(CCTargetedTouchHandlerTypeinfoFix, CCTargetedTouchHandler) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <codegenned/modify/CCStandardTouchHandler.hpp>
|
#include <Geode/modify/CCStandardTouchHandler.hpp>
|
||||||
class $modify(CCStandardTouchHandlerTypeinfoFix, CCStandardTouchHandler) {
|
class $modify(CCStandardTouchHandlerTypeinfoFix, CCStandardTouchHandler) {
|
||||||
void destructor() {
|
void destructor() {
|
||||||
if (m_pDelegate) {
|
if (m_pDelegate) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
#include <codegenned/modify/AchievementNotifier.hpp>
|
#include <Geode/modify/AchievementNotifier.hpp>
|
||||||
class $modify(AchievementNotifier) {
|
class $modify(AchievementNotifier) {
|
||||||
void willSwitchToScene(CCScene* scene) {
|
void willSwitchToScene(CCScene* scene) {
|
||||||
AchievementNotifier::willSwitchToScene(scene);
|
AchievementNotifier::willSwitchToScene(scene);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
#include <codegenned/modify/AppDelegate.hpp>
|
#include <Geode/modify/AppDelegate.hpp>
|
||||||
class $modify(AppDelegate) {
|
class $modify(AppDelegate) {
|
||||||
void trySaveGame() {
|
void trySaveGame() {
|
||||||
log::log(Severity::Info, Loader::getInternalMod(), "Saving...");
|
log::log(Severity::Info, Loader::getInternalMod(), "Saving...");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
#include <codegenned/modify/CCScheduler.hpp>
|
#include <Geode/modify/CCScheduler.hpp>
|
||||||
class $modify(CCScheduler) {
|
class $modify(CCScheduler) {
|
||||||
void update(float dt) {
|
void update(float dt) {
|
||||||
InternalLoader::get()->executeGDThreadQueue();
|
InternalLoader::get()->executeGDThreadQueue();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
#include <codegenned/modify/GameManager.hpp>
|
#include <Geode/modify/GameManager.hpp>
|
||||||
class $modify(GameManager) {
|
class $modify(GameManager) {
|
||||||
void reloadAllStep2() {
|
void reloadAllStep2() {
|
||||||
GameManager::reloadAllStep2();
|
GameManager::reloadAllStep2();
|
||||||
|
@ -10,7 +10,7 @@ class $modify(GameManager) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <codegenned/modify/LoadingLayer.hpp>
|
#include <Geode/modify/LoadingLayer.hpp>
|
||||||
class $modify(LoadingLayer) {
|
class $modify(LoadingLayer) {
|
||||||
void loadAssets() {
|
void loadAssets() {
|
||||||
LoadingLayer::loadAssets();
|
LoadingLayer::loadAssets();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "HookListLayer.hpp"
|
#include "HookListLayer.hpp"
|
||||||
#include <codegenned/binding/GJListLayer.hpp>
|
#include <Geode/binding/GJListLayer.hpp>
|
||||||
|
|
||||||
bool HookListLayer::init(Mod* mod) {
|
bool HookListLayer::init(Mod* mod) {
|
||||||
if (!GJDropDownLayer::init("Hooks", 220.f))
|
if (!GJDropDownLayer::init("Hooks", 220.f))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "HookListView.hpp"
|
#include "HookListView.hpp"
|
||||||
#include <codegenned/binding/GJDropDownLayer.hpp>
|
#include <Geode/binding/GJDropDownLayer.hpp>
|
||||||
|
|
||||||
class HookListLayer : public GJDropDownLayer {
|
class HookListLayer : public GJDropDownLayer {
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "HookListView.hpp"
|
#include "HookListView.hpp"
|
||||||
#include <codegenned/binding/TableView.hpp>
|
#include <Geode/binding/TableView.hpp>
|
||||||
#include <codegenned/binding/StatsCell.hpp>
|
#include <Geode/binding/StatsCell.hpp>
|
||||||
#include <Geode/utils/casts.hpp>
|
#include <Geode/utils/casts.hpp>
|
||||||
|
|
||||||
HookCell::HookCell(const char* name, CCSize size) :
|
HookCell::HookCell(const char* name, CCSize size) :
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/TableViewCell.hpp>
|
#include <Geode/binding/TableViewCell.hpp>
|
||||||
#include <codegenned/binding/CustomListView.hpp>
|
#include <Geode/binding/CustomListView.hpp>
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
#include <Geode/ui/MDPopup.hpp>
|
#include <Geode/ui/MDPopup.hpp>
|
||||||
#include "../settings/ModSettingsPopup.hpp"
|
#include "../settings/ModSettingsPopup.hpp"
|
||||||
#include <InternalLoader.hpp>
|
#include <InternalLoader.hpp>
|
||||||
#include <codegenned/binding/Slider.hpp>
|
#include <Geode/binding/Slider.hpp>
|
||||||
#include <codegenned/binding/SliderThumb.hpp>
|
#include <Geode/binding/SliderThumb.hpp>
|
||||||
#include <codegenned/binding/ButtonSprite.hpp>
|
#include <Geode/binding/ButtonSprite.hpp>
|
||||||
#include <codegenned/binding/SliderTouchLogic.hpp>
|
#include <Geode/binding/SliderTouchLogic.hpp>
|
||||||
#include <codegenned/binding/GJListLayer.hpp>
|
#include <Geode/binding/GJListLayer.hpp>
|
||||||
#include <codegenned/binding/CCTextInputNode.hpp>
|
#include <Geode/binding/CCTextInputNode.hpp>
|
||||||
|
|
||||||
// TODO: die
|
// TODO: die
|
||||||
#undef min
|
#undef min
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/FLAlertLayer.hpp>
|
#include <Geode/binding/FLAlertLayer.hpp>
|
||||||
#include <codegenned/binding/FLAlertLayerProtocol.hpp>
|
#include <Geode/binding/FLAlertLayerProtocol.hpp>
|
||||||
#include <Index.hpp>
|
#include <Index.hpp>
|
||||||
#include <Geode/ui/MDTextArea.hpp>
|
#include <Geode/ui/MDTextArea.hpp>
|
||||||
#include <Geode/ui/Scrollbar.hpp>
|
#include <Geode/ui/Scrollbar.hpp>
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
#include "SearchFilterPopup.hpp"
|
#include "SearchFilterPopup.hpp"
|
||||||
#include <Geode/ui/Notification.hpp>
|
#include <Geode/ui/Notification.hpp>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <codegenned/binding/GJListLayer.hpp>
|
#include <Geode/binding/GJListLayer.hpp>
|
||||||
#include <codegenned/binding/CCTextInputNode.hpp>
|
#include <Geode/binding/CCTextInputNode.hpp>
|
||||||
#include <codegenned/binding/ButtonSprite.hpp>
|
#include <Geode/binding/ButtonSprite.hpp>
|
||||||
#include <codegenned/binding/LoadingCircle.hpp>
|
#include <Geode/binding/LoadingCircle.hpp>
|
||||||
#include <codegenned/binding/MenuLayer.hpp>
|
#include <Geode/binding/MenuLayer.hpp>
|
||||||
#include <codegenned/binding/GameToolbox.hpp>
|
#include <Geode/binding/GameToolbox.hpp>
|
||||||
#include <codegenned/binding/StatsCell.hpp>
|
#include <Geode/binding/StatsCell.hpp>
|
||||||
#include <codegenned/binding/TableView.hpp>
|
#include <Geode/binding/TableView.hpp>
|
||||||
#include <Geode/utils/casts.hpp>
|
#include <Geode/utils/casts.hpp>
|
||||||
|
|
||||||
static ModListType g_tab = ModListType::Installed;
|
static ModListType g_tab = ModListType::Installed;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/TextInputDelegate.hpp>
|
#include <Geode/binding/TextInputDelegate.hpp>
|
||||||
#include "ModListView.hpp"
|
#include "ModListView.hpp"
|
||||||
#include <Index.hpp>
|
#include <Index.hpp>
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
#include "ModListLayer.hpp"
|
#include "ModListLayer.hpp"
|
||||||
#include <InternalLoader.hpp>
|
#include <InternalLoader.hpp>
|
||||||
#include "../info/CategoryNode.hpp"
|
#include "../info/CategoryNode.hpp"
|
||||||
#include <codegenned/binding/StatsCell.hpp>
|
#include <Geode/binding/StatsCell.hpp>
|
||||||
#include <codegenned/binding/ButtonSprite.hpp>
|
#include <Geode/binding/ButtonSprite.hpp>
|
||||||
#include <codegenned/binding/TableView.hpp>
|
#include <Geode/binding/TableView.hpp>
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
static bool tryOrAlert(Result<T> const& res, const char* title) {
|
static bool tryOrAlert(Result<T> const& res, const char* title) {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <codegenned/binding/TableViewCell.hpp>
|
#include <Geode/binding/TableViewCell.hpp>
|
||||||
#include <codegenned/binding/FLAlertLayerProtocol.hpp>
|
#include <Geode/binding/FLAlertLayerProtocol.hpp>
|
||||||
#include <codegenned/binding/CustomListView.hpp>
|
#include <Geode/binding/CustomListView.hpp>
|
||||||
#include <Index.hpp>
|
#include <Index.hpp>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "ModListView.hpp"
|
#include "ModListView.hpp"
|
||||||
#include <Geode/ui/SelectList.hpp>
|
#include <Geode/ui/SelectList.hpp>
|
||||||
#include "../info/CategoryNode.hpp"
|
#include "../info/CategoryNode.hpp"
|
||||||
#include <codegenned/binding/GameToolbox.hpp>
|
#include <Geode/binding/GameToolbox.hpp>
|
||||||
|
|
||||||
bool SearchFilterPopup::setup(ModListLayer* layer, ModListType type) {
|
bool SearchFilterPopup::setup(ModListLayer* layer, ModListType type) {
|
||||||
m_noElasticity = true;
|
m_noElasticity = true;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#include "GeodeSettingNode.hpp"
|
#include "GeodeSettingNode.hpp"
|
||||||
#include <Geode/utils/platform.hpp>
|
#include <Geode/utils/platform.hpp>
|
||||||
#include <codegenned/binding/ColorChannelSprite.hpp>
|
#include <Geode/binding/ColorChannelSprite.hpp>
|
||||||
#include <codegenned/binding/ButtonSprite.hpp>
|
#include <Geode/binding/ButtonSprite.hpp>
|
||||||
#include <codegenned/binding/CCTextInputNode.hpp>
|
#include <Geode/binding/CCTextInputNode.hpp>
|
||||||
#include <codegenned/binding/Slider.hpp>
|
#include <Geode/binding/Slider.hpp>
|
||||||
|
|
||||||
// BoolSettingNode
|
// BoolSettingNode
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
#include <Geode/loader/Setting.hpp>
|
#include <Geode/loader/Setting.hpp>
|
||||||
#include <Geode/loader/SettingNode.hpp>
|
#include <Geode/loader/SettingNode.hpp>
|
||||||
#include <codegenned/binding/CCMenuItemSpriteExtra.hpp>
|
#include <Geode/binding/CCMenuItemSpriteExtra.hpp>
|
||||||
#include <codegenned/binding/CCTextInputNode.hpp>
|
#include <Geode/binding/CCTextInputNode.hpp>
|
||||||
#include <codegenned/binding/Slider.hpp>
|
#include <Geode/binding/Slider.hpp>
|
||||||
#include <codegenned/binding/SliderThumb.hpp>
|
#include <Geode/binding/SliderThumb.hpp>
|
||||||
#include <Geode/ui/InputNode.hpp>
|
#include <Geode/ui/InputNode.hpp>
|
||||||
#include <Geode/ui/BasedButtonSprite.hpp>
|
#include <Geode/ui/BasedButtonSprite.hpp>
|
||||||
#include <Geode/utils/convert.hpp>
|
#include <Geode/utils/convert.hpp>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <Geode/loader/Setting.hpp>
|
#include <Geode/loader/Setting.hpp>
|
||||||
#include <Geode/utils/cocos.hpp>
|
#include <Geode/utils/cocos.hpp>
|
||||||
#include <Geode/utils/convert.hpp>
|
#include <Geode/utils/convert.hpp>
|
||||||
#include <codegenned/binding/ButtonSprite.hpp>
|
#include <Geode/binding/ButtonSprite.hpp>
|
||||||
|
|
||||||
bool ModSettingsPopup::setup(Mod* mod) {
|
bool ModSettingsPopup::setup(Mod* mod) {
|
||||||
m_noElasticity = true;
|
m_noElasticity = true;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#include <Geode/ui/ColorPickPopup.hpp>
|
#include <Geode/ui/ColorPickPopup.hpp>
|
||||||
#include <Geode/utils/operators.hpp>
|
#include <Geode/utils/operators.hpp>
|
||||||
#include <codegenned/binding/ButtonSprite.hpp>
|
#include <Geode/binding/ButtonSprite.hpp>
|
||||||
#include <codegenned/binding/CCTextInputNode.hpp>
|
#include <Geode/binding/CCTextInputNode.hpp>
|
||||||
#include <codegenned/binding/Slider.hpp>
|
#include <Geode/binding/Slider.hpp>
|
||||||
#include <codegenned/binding/SliderThumb.hpp>
|
#include <Geode/binding/SliderThumb.hpp>
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <Geode/ui/InputNode.hpp>
|
#include <Geode/ui/InputNode.hpp>
|
||||||
#include <codegenned/binding/CCTextInputNode.hpp>
|
#include <Geode/binding/CCTextInputNode.hpp>
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <Geode/ui/ListView.hpp>
|
#include <Geode/ui/ListView.hpp>
|
||||||
#include <codegenned/binding/StatsCell.hpp>
|
#include <Geode/binding/StatsCell.hpp>
|
||||||
#include <codegenned/binding/TableView.hpp>
|
#include <Geode/binding/TableView.hpp>
|
||||||
#include <Geode/utils/casts.hpp>
|
#include <Geode/utils/casts.hpp>
|
||||||
#include <Geode/utils/cocos.hpp>
|
#include <Geode/utils/cocos.hpp>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <Geode/ui/MDPopup.hpp>
|
#include <Geode/ui/MDPopup.hpp>
|
||||||
#include <Geode/utils/string.hpp>
|
#include <Geode/utils/string.hpp>
|
||||||
#include <codegenned/binding/ButtonSprite.hpp>
|
#include <Geode/binding/ButtonSprite.hpp>
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <Geode/ui/MDTextArea.hpp>
|
#include <Geode/ui/MDTextArea.hpp>
|
||||||
#include <md4c.h>
|
#include <md4c.h>
|
||||||
#include <codegenned/binding/ProfilePage.hpp>
|
#include <Geode/binding/ProfilePage.hpp>
|
||||||
#include <Geode/utils/cocos.hpp>
|
#include <Geode/utils/cocos.hpp>
|
||||||
#include <Geode/utils/string.hpp>
|
#include <Geode/utils/string.hpp>
|
||||||
#include <Geode/utils/casts.hpp>
|
#include <Geode/utils/casts.hpp>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <Geode/ui/Notification.hpp>
|
#include <Geode/ui/Notification.hpp>
|
||||||
#include <Geode/ui/TextRenderer.hpp>
|
#include <Geode/ui/TextRenderer.hpp>
|
||||||
#include <codegenned/binding/GameSoundManager.hpp>
|
#include <Geode/binding/GameSoundManager.hpp>
|
||||||
#include <Geode/utils/cocos.hpp>
|
#include <Geode/utils/cocos.hpp>
|
||||||
#include <Geode/utils/vector.hpp>
|
#include <Geode/utils/vector.hpp>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
USE_GEODE_NAMESPACE();
|
USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
#include <codegenned/modify/MenuLayer.hpp>
|
#include <Geode/modify/MenuLayer.hpp>
|
||||||
class $modify(MenuLayer) {
|
class $modify(MenuLayer) {
|
||||||
void onMoreGames(CCObject*) {
|
void onMoreGames(CCObject*) {
|
||||||
if (Mod::get()->getSettingValue<bool>("its-raining-after-all")) {
|
if (Mod::get()->getSettingValue<bool>("its-raining-after-all")) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ GEODE_API bool GEODE_CALL geode_unload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modify
|
// Modify
|
||||||
#include <codegenned/modify/GJGarageLayer.hpp>
|
#include <Geode/modify/GJGarageLayer.hpp>
|
||||||
class $modify(GJGarageLayerTest, GJGarageLayer) {
|
class $modify(GJGarageLayerTest, GJGarageLayer) {
|
||||||
GJGarageLayerTest() :
|
GJGarageLayerTest() :
|
||||||
myValue(1907) {}
|
myValue(1907) {}
|
||||||
|
|
Loading…
Reference in a new issue