Skip to content

Commit

Permalink
2.206 support
Browse files Browse the repository at this point in the history
  • Loading branch information
NicknameGG committed Jun 29, 2024
1 parent 5d7a857 commit c1105ac
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- "main"
- "**"

jobs:
build:
Expand All @@ -14,7 +14,7 @@ jobs:
config:
- name: Windows
os: windows-latest

- name: macOS
os: macos-latest

Expand All @@ -35,9 +35,11 @@ jobs:
- name: Build the mod
uses: geode-sdk/build-geode-mod@main
with:
bindings: geode-sdk/bindings
bindings-ref: main
combine: true
target: ${{ matrix.config.target }}

package:
name: Package builds
runs-on: ubuntu-latest
Expand All @@ -47,7 +49,7 @@ jobs:
- uses: geode-sdk/build-geode-mod/combine@main
id: build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}
path: ${{ steps.build.outputs.build-output }}
61 changes: 61 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Macos be like
**/.DS_Store

# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Ignore build folders
**/build
# Ignore platform specific build folders
build-*/

# Workspace files are user-specific
*.sublime-workspace

# ILY vscode
**/.vscode
.idea/

# clangd
.cache/

# Visual Studio
.vs/

# CLion
/cmake-build-*/
12 changes: 5 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_C_FLAGS -m32)
set(CMAKE_CXX_FLAGS -m32)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(robtop-jumpscare VERSION 1.0.0)
project(RobtopJumpscare VERSION 1.0.0)

# Set up the mod binary
add_library(${PROJECT_NAME} SHARED
src/main.cpp
# Add your cpp files here
# Add any extra C++ source files here
)

if (NOT DEFINED ENV{GEODE_SDK})
Expand All @@ -22,5 +20,5 @@ endif()

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

# Set up dependencies, resources, link Geode
setup_geode_mod(${PROJECT_NAME})
# Set up dependencies, resources, and link Geode.
setup_geode_mod(${PROJECT_NAME})
21 changes: 13 additions & 8 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"geode": "2.0.0",
"version": "v1.2.2",
"geode": "3.0.0",
"gd": {
"win": "2.206",
"android": "2.206",
"mac": "2.206",
"ios": "2.206"
},
"tags": [
"joke"
],
"id": "n.robtop-jumpscare",
"name": "Robtop Jumpscare",
"version": "v1.3.2",
"developer": "n",
"gd": {
"android": "2.205",
"win": "2.204"
},
"repository": "https://github.com/NicknameGG/robtop-jumpscare",
"description": "Jumpscare yourself everytime you jump!",
"repository": "https://github.com/NicknameGG/robtop-jumpscare",
"resources": {
"files": [
"resources/*.mp3",
Expand All @@ -24,4 +29,4 @@
"default": false
}
}
}
}
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class $modify(PlayerObject) {
isHolding = false;
}

TodoReturn releaseButton(PlayerButton p0) {
void releaseButton(PlayerButton p0) {
PlayerObject::releaseButton(p0);

if (p0 != PlayerButton::Jump)
Expand All @@ -58,7 +58,7 @@ class $modify(PlayerObject) {
}
}

TodoReturn pushButton(PlayerButton p0) {
void pushButton(PlayerButton p0) {

PlayerObject::pushButton(p0);

Expand Down

0 comments on commit c1105ac

Please sign in to comment.