Skip to content

Commit

Permalink
fix pch issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Nov 16, 2024
1 parent 69ba033 commit 1d8fa9a
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else()
message(STATUS "Found Geode: $ENV{GEODE_SDK}")
endif()

add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)
add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode SYSTEM)

setup_geode_mod(${PROJECT_NAME})

Expand All @@ -70,5 +70,9 @@ else()
-Wno-dollar-in-identifier-extension
# Class init functions all overload a virtual
-Wno-overloaded-virtual
# GEODE_UNWRAP
-Wno-gnu-statement-expression-from-macro-expansion
# Style "IDC"s
-Wno-extra-semi
)
endif()
1 change: 1 addition & 0 deletions src/features/CopyToClipboard.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <Geode/modify/EditorUI.hpp>
#include <Geode/utils/general.hpp>
#include <Geode/ui/Notification.hpp>
#include <Geode/binding/GameManager.hpp>

using namespace geode::prelude;

Expand Down
5 changes: 5 additions & 0 deletions src/features/EditMixedValues.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#include <Geode/modify/SetGroupIDLayer.hpp>
#include <Geode/modify/SetupTriggerPopup.hpp>
#include <Geode/modify/SetupRotateCommandPopup.hpp>
#include <Geode/binding/GameObject.hpp>
#include <Geode/binding/ButtonSprite.hpp>
#include <Geode/binding/EffectGameObject.hpp>
#include <Geode/utils/cocos.hpp>
#include <Geode/utils/string.hpp>
#include <Geode/ui/TextInput.hpp>

using namespace geode::prelude;

Expand Down
6 changes: 6 additions & 0 deletions src/features/HSVPreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#include <Geode/modify/HSVWidgetPopup.hpp>
#include <Geode/modify/CustomizeObjectLayer.hpp>
#include <Geode/modify/ColorSelectPopup.hpp>
#include <Geode/binding/LevelEditorLayer.hpp>
#include <Geode/binding/GameToolbox.hpp>
#include <Geode/binding/EffectGameObject.hpp>
#include <Geode/binding/ColorAction.hpp>
#include <Geode/binding/LevelSettingsObject.hpp>
#include <Geode/binding/GJEffectManager.hpp>

using namespace geode::prelude;

Expand Down
13 changes: 9 additions & 4 deletions src/features/ImprovedScaleAndRotate.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#include <Geode/modify/EditorUI.hpp>
#include <Geode/modify/GJScaleControl.hpp>
#include <Geode/modify/GJRotationControl.hpp>
#include <Geode/binding/ButtonSprite.hpp>
#include <Geode/binding/Slider.hpp>
#include <Geode/binding/GameManager.hpp>
#include <Geode/binding/GameObject.hpp>
#include <Geode/ui/TextInput.hpp>
#include <utils/Editor.hpp>
#include <numbers>
#include <span>
Expand Down Expand Up @@ -171,7 +176,7 @@ class $modify(SnappableScaleControl, GJScaleControl) {
inputX->setID("input-x"_spr);
inputX->setPosition(30, m_scaleXLabel->getPositionY());
inputX->setCommonFilter(CommonFilter::Float);
inputX->setCallback([this, inputX](auto const& str) {
inputX->setCallback([this](auto const& str) {
if (auto scale = numFromString<float>(str)) {
m_delegate->scaleXChanged(*scale, m_scaleLocked);
m_sliderX->setValue(this->valueFromScale(*scale));
Expand All @@ -184,7 +189,7 @@ class $modify(SnappableScaleControl, GJScaleControl) {
inputY->setID("input-y"_spr);
inputY->setPosition(30, m_scaleYLabel->getPositionY());
inputY->setCommonFilter(CommonFilter::Float);
inputY->setCallback([this, inputY](auto const& str) {
inputY->setCallback([this](auto const& str) {
if (auto scale = numFromString<float>(str)) {
m_delegate->scaleYChanged(*scale, m_scaleLocked);
m_sliderY->setValue(this->valueFromScale(*scale));
Expand All @@ -197,7 +202,7 @@ class $modify(SnappableScaleControl, GJScaleControl) {
inputXY->setID("input-xy"_spr);
inputXY->setPosition(25, m_scaleLabel->getPositionY());
inputXY->setCommonFilter(CommonFilter::Float);
inputXY->setCallback([this, inputXY](auto const& str) {
inputXY->setCallback([this](auto const& str) {
if (auto scale = numFromString<float>(str)) {
m_delegate->scaleXYChanged(*scale, *scale, m_scaleLocked);
m_sliderXY->setValue(this->valueFromScale(*scale));
Expand Down Expand Up @@ -385,7 +390,7 @@ class $modify(InputRotationControl, GJRotationControl) {
input->setID("input-angle"_spr);
input->setPosition(110, 0);
input->setCommonFilter(CommonFilter::Float);
input->setCallback([this, input](auto const& str) {
input->setCallback([this](auto const& str) {
if (auto angle = numFromString<float>(str)) {
m_delegate->angleChangeBegin();
m_delegate->angleChanged(*angle);
Expand Down
2 changes: 2 additions & 0 deletions src/features/Keybinds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <geode.custom-keybinds/include/Keybinds.hpp>
#include <Geode/modify/EditorUI.hpp>
#include <Geode/binding/EditButtonBar.hpp>
#include <Geode/binding/GameManager.hpp>
#include <Geode/ui/Notification.hpp>
#include <utils/Editor.hpp>
#include <utils/HolyUB.hpp>
#include "GridScaling.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/features/TypeInZLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <Geode/binding/CCMenuItemSpriteExtra.hpp>
#include <Geode/binding/LevelEditorLayer.hpp>
#include <Geode/binding/GameManager.hpp>
#include <Geode/binding/GameObject.hpp>
#include <utils/Editor.hpp>
#include <utils/Pro.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/features/ViewTab/ViewTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#include <Geode/modify/GameObject.hpp>
#include <Geode/modify/DrawGridLayer.hpp>
#include <Geode/modify/FMODAudioEngine.hpp>

#include <Geode/binding/LevelEditorLayer.hpp>
#include <Geode/binding/CCMenuItemSpriteExtra.hpp>
#include <Geode/binding/ButtonSprite.hpp>
#include <Geode/binding/EditButtonBar.hpp>
#include <Geode/binding/GameManager.hpp>
#include <Geode/binding/GJGroundLayer.hpp>
#include <Geode/utils/cocos.hpp>
#include <geode.custom-keybinds/include/Keybinds.hpp>
#include <utils/Editor.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/features/backups/Backup.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "Backup.hpp"
#include <Geode/loader/Dirs.hpp>
#include <Geode/utils/file.hpp>
#include <Geode/utils/JsonValidation.hpp>
#include <hjfod.gmd-api/include/GMD.hpp>
#include <cvolton.level-id-api/include/EditorIDs.hpp>
#include <matjson/stl_serialize.hpp>
Expand Down
2 changes: 2 additions & 0 deletions src/features/backups/QuickSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <Geode/modify/EditorPauseLayer.hpp>
#include <Geode/modify/GManager.hpp>
#include <Geode/modify/MenuLayer.hpp>
#include <Geode/binding/LocalLevelManager.hpp>
#include <Geode/binding/FLAlertLayer.hpp>
#include <cvolton.level-id-api/include/EditorIDs.hpp>
#include <hjfod.gmd-api/include/GMD.hpp>
#include <utils/HolyUB.hpp>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <Geode/modify/GameManager.hpp>
#include <Geode/modify/EditorUI.hpp>
#include <Geode/modify/EditorPauseLayer.hpp>
#include <Geode/binding/EditButtonBar.hpp>
#include <Geode/binding/CCTextInputNode.hpp>
#include <utils/Warn.hpp>

// i hate touch prioi hate touch prioi hate touch prioi hate touch prioi hate
Expand Down

0 comments on commit 1d8fa9a

Please sign in to comment.