Skip to content

Commit dd7530d

Browse files
committed
try this
1 parent 8274b6d commit dd7530d

File tree

25 files changed

+40
-29
lines changed

25 files changed

+40
-29
lines changed

CMakeLists.txt

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,46 @@
11
cmake_minimum_required(VERSION 3.21)
2+
3+
# Set C++ standard and project properties
24
set(CMAKE_CXX_STANDARD 20)
35
set(CMAKE_CXX_STANDARD_REQUIRED ON)
46
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
57
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
68

79
project(Geodify VERSION 1.0.0)
810

11+
# Collect source files
912
file(GLOB_RECURSE SOURCES src/*.cpp)
1013

14+
# Define the shared library target
1115
add_library(${PROJECT_NAME} SHARED ${SOURCES})
1216

17+
# Ensure Geode SDK is available
1318
if (NOT DEFINED ENV{GEODE_SDK})
1419
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode")
1520
else()
1621
message(STATUS "Found Geode: $ENV{GEODE_SDK}")
1722
endif()
1823

24+
# Special case for GitHub Actions
1925
if (DEFINED ENV{GITHUB_ACTIONS})
2026
message("Github Actions Build")
2127
add_definitions(-DGITHUB_ACTIONS)
2228
endif()
2329

30+
# Include CPM.cmake
2431
include("cmake/CPM.cmake")
2532

26-
# Fetch the external-hook-api package
27-
CPMAddPackage("gh:OmgRod/External-Hook-API#master")
33+
# Fetch the external-hook-api package using the new CPM syntax
34+
CPMAddPackage(
35+
NAME external-hook-api
36+
GIT_REPOSITORY https://github.com/OmgRod/External-Hook-API.git
37+
GIT_TAG master
38+
)
2839

29-
# Add your Geode SDK as a subdirectory
40+
# Add Geode SDK as a subdirectory
3041
add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)
3142

32-
# Link the external-hook-api target to your project using the same style
43+
# Link the external-hook-api target to your project
3344
target_link_libraries(${PROJECT_NAME} external-hook-api)
3445

3546
# Setup Geode module (if applicable)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ For external mods that modify the background of a specific menu, you can use the
7070
```cpp
7171
#include <Geode/Geode.hpp>
7272
#include "../../SwelvyBG.hpp"
73-
#include <external-hook-api/include/HookClass.hpp>
73+
#include <external-hook-api/HookClass.hpp>
7474
using namespace geode::prelude;
7575

7676
HookClass(GlobedLevelListLayer) {
@@ -96,7 +96,7 @@ Please do not do this unless like in this example it's the only way since HookCl
9696
```cpp
9797
#include <Geode/Geode.hpp>
9898
#include "../../SwelvyBG.hpp"
99-
#include <external-hook-api/include/HookClass.hpp>
99+
#include <external-hook-api/HookClass.hpp>
100100
using namespace geode::prelude;
101101
// class name to store in code, Hook to (the real layer id)
102102
HookClass_Scene(cvolton_betterinfo_CustomCreatorLayer,"cvolton.betterinfo/CustomCreatorLayer") {

src/modify/cvolton.betterinfo/CustomCreatorLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44
using namespace geode::prelude;
55

66
HookClass_Scene(cvolton_betterinfo_CustomCreatorLayer,"cvolton.betterinfo/CustomCreatorLayer") {

src/modify/cvolton.betterinfo/DailyViewLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44
using namespace geode::prelude;
55
HookClass(DailyViewLayer) {
66
if (Mod::get()->getSettingValue<bool>("external-mods")) {

src/modify/cvolton.betterinfo/LevelSearchViewLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44

55
using namespace geode::prelude;
66
HookClass_Scene(cvolton_betterinfo_LevelSearchViewLayer,"cvolton.betterinfo/LevelSearchViewLayer") {

src/modify/cvolton.betterinfo/RewardGroupLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44
using namespace geode::prelude;
55
HookClass(RewardGroupLayer) {
66
if (Mod::get()->getSettingValue<bool>("external-mods")) {

src/modify/cvolton.betterinfo/RewardViewLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44

55
using namespace geode::prelude;
66
HookClass(RewardViewLayer) {

src/modify/dankmeme.globed2/GlobedLevelListLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44
using namespace geode::prelude;
55
HookClass(GlobedLevelListLayer) {
66
if (Mod::get()->getSettingValue<bool>("external-mods")) {

src/modify/dankmeme.globed2/GlobedMenuLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44
using namespace geode::prelude;
55
HookClass(GlobedMenuLayer) {
66
if (Mod::get()->getSettingValue<bool>("external-mods")) {

src/modify/dankmeme.globed2/GlobedServersLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Geode/Geode.hpp>
22
#include "../../SwelvyBG.hpp"
3-
#include <external-hook-api/include/HookClass.hpp>
3+
#include <external-hook-api/HookClass.hpp>
44
using namespace geode::prelude;
55
HookClass(GlobedServersLayer) {
66
if (Mod::get()->getSettingValue<bool>("external-mods")) {

0 commit comments

Comments
 (0)