Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 495ea1a

Browse files
authored
deprecation (#247)
* prepare for 64 bit only linker errors for libcurl and cocos2d are to fix (need to get the new libs) * click between frames warning * improve best run * add more labels * Update gd.hpp * Update CHANGELOG.md * ui tweaks * fix 64 bit crashhandler * x64 libcurl * Update gd.hpp * remove 4gb patch * 2.206 changes * update libs * x64 workflow * update libs * 2.206 * "small fix" * tiny clean-ups * random edits * Update README.md
1 parent af2cfb4 commit 495ea1a

File tree

92 files changed

+2098
-1419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2098
-1419
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -52,50 +52,50 @@ jobs:
5252
name: OpenHack-Geode
5353
path: ${{ steps.build.outputs.build-output }}
5454

55-
standalone:
56-
name: Vanilla OpenHack
57-
runs-on: windows-latest
58-
steps:
59-
- uses: actions/checkout@v4
60-
with:
61-
submodules: recursive
62-
63-
- name: Install Ninja
64-
shell: bash
65-
run: |
66-
curl -L https://github.com/ninja-build/ninja/releases/latest/download/ninja-win.zip -o ninja.zip
67-
7z x ninja.zip -o"$GITHUB_WORKSPACE/ninja"
68-
echo "$GITHUB_WORKSPACE/ninja" >> $GITHUB_PATH
69-
70-
- name: Update LLVM
71-
shell: bash
72-
run: |
73-
curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/LLVM-17.0.6-win64.exe -o llvm-inst.exe
74-
7z x llvm-inst.exe -ollvm bin/clang.exe bin/clang++.exe bin/lld-link.exe bin/llvm-rc.exe bin/*.dll lib/clang/*/include/*
75-
echo "$GITHUB_WORKSPACE/llvm/bin" >> $GITHUB_PATH
76-
77-
- name: Configure CMake and build
78-
id: build
79-
shell: bash
80-
run: |
81-
mkdir -p $HOME/.sccache
82-
export CFLAGS="--target=i686-windows-msvc"
83-
export CXXFLAGS="--target=i686-windows-msvc"
84-
export LDFLAGS="--target=i686-windows-msvc"
85-
cmake -B build -DBUILD_GEODE=OFF -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
86-
cmake --build build --config ${{env.BUILD_TYPE}}
87-
88-
- name: Save artifacts
89-
uses: actions/upload-artifact@v4
90-
with:
91-
name: OpenHack-Standalone
92-
path: ${{github.workspace}}/bin
55+
# standalone:
56+
# name: Vanilla OpenHack
57+
# runs-on: windows-latest
58+
# steps:
59+
# - uses: actions/checkout@v4
60+
# with:
61+
# submodules: recursive
62+
#
63+
# - name: Install Ninja
64+
# shell: bash
65+
# run: |
66+
# curl -L https://github.com/ninja-build/ninja/releases/latest/download/ninja-win.zip -o ninja.zip
67+
# 7z x ninja.zip -o"$GITHUB_WORKSPACE/ninja"
68+
# echo "$GITHUB_WORKSPACE/ninja" >> $GITHUB_PATH
69+
#
70+
# - name: Update LLVM
71+
# shell: bash
72+
# run: |
73+
# curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/LLVM-17.0.6-win64.exe -o llvm-inst.exe
74+
# 7z x llvm-inst.exe -ollvm bin/clang.exe bin/clang++.exe bin/lld-link.exe bin/llvm-rc.exe bin/*.dll lib/clang/*/include/*
75+
# echo "$GITHUB_WORKSPACE/llvm/bin" >> $GITHUB_PATH
76+
#
77+
# - name: Configure CMake and build
78+
# id: build
79+
# shell: bash
80+
# run: |
81+
# mkdir -p $HOME/.sccache
82+
# export CFLAGS="--target=x86_64-windows-msvc"
83+
# export CXXFLAGS="--target=x86_64-windows-msvc"
84+
# export LDFLAGS="--target=x86_64-windows-msvc"
85+
# cmake -B build -DBUILD_GEODE=OFF -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
86+
# cmake --build build --config ${{env.BUILD_TYPE}}
87+
#
88+
# - name: Save artifacts
89+
# uses: actions/upload-artifact@v4
90+
# with:
91+
# name: OpenHack-Standalone
92+
# path: ${{github.workspace}}/bin
9393

9494
package:
9595
name: Create Nightly Release
9696
runs-on: ubuntu-latest
9797
if: github.ref == 'refs/heads/lemonade'
98-
needs: ['standalone', 'package-geode']
98+
needs: ['package-geode']
9999

100100
steps:
101101
- name: Download artifacts
@@ -104,15 +104,15 @@ jobs:
104104
path: ${{ github.workspace }}/bin
105105
merge-multiple: true
106106

107-
- name: Prepare standalone zip
108-
run: |
109-
mkdir -p ${{ github.workspace }}/bin/standalone
110-
cp -r ${{ github.workspace }}/bin/openhack ${{ github.workspace }}/bin/standalone/openhack
111-
cp ${{ github.workspace }}/bin/xinput9_1_0.dll ${{ github.workspace }}/bin/standalone/xinput9_1_0.dll
112-
113-
- name: Package standalone
114-
run: |
115-
7z a -tzip ${{ github.workspace }}/bin/OpenHack-Nightly.zip ${{ github.workspace }}/bin/standalone/*
107+
# - name: Prepare standalone zip
108+
# run: |
109+
# mkdir -p ${{ github.workspace }}/bin/standalone
110+
# cp -r ${{ github.workspace }}/bin/openhack ${{ github.workspace }}/bin/standalone/openhack
111+
# cp ${{ github.workspace }}/bin/xinput1_4.dll ${{ github.workspace }}/bin/standalone/xinput1_4.dll
112+
#
113+
# - name: Package standalone
114+
# run: |
115+
# 7z a -tzip ${{ github.workspace }}/bin/OpenHack-Nightly.zip ${{ github.workspace }}/bin/standalone/*
116116

117117
- name: Get latest release tag
118118
id: get_latest_release
@@ -133,7 +133,7 @@ jobs:
133133
134134
Changes since the last release: https://github.com/Prevter/OpenHack/compare/${{ steps.get_latest_release.outputs.tag }}...nightly
135135
files: |
136-
${{ github.workspace }}/bin/OpenHack-Nightly.zip
136+
# ${{ github.workspace }}/bin/OpenHack-Nightly.zip
137137
${{ github.workspace }}/bin/prevter.openhack.geode
138138
${{ github.workspace }}/bin/prevter.openhack.pdb
139-
${{ github.workspace }}/bin/xinput9_1_0.pdb
139+
# ${{ github.workspace }}/bin/xinput1_4.pdb

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[submodule "libs/imgui"]
22
path = libs/imgui
33
url = https://github.com/prevter/imgui
4-
[submodule "libs/gd.hpp"]
5-
path = libs/gd.hpp
6-
url = https://github.com/prevter/gd.hpp
74
[submodule "libs/minhook"]
85
path = libs/minhook
96
url = https://github.com/TsudaKageyu/minhook

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## v2.4.0
2+
**New**:
3+
* Ported to 2.206 (Geode only)
4+
* Improved "Best Run" calculation
5+
* Tweaked some UI elements
6+
* Added a "Lock First Column" option for the menu
7+
* Added a notice for "Click Between Frames" users
8+
* Performance improvements
9+
* Noclip now has separate settings for each player
10+
11+
**Fixes**:
12+
* Fixed "Auto Hide Triggers" hiding speed portals and checkpoints
13+
* Fixed "Speedhack Audio" compatibility with some mods
14+
* Fixed "Smart StartPos" having issues with some levels
15+
16+
**Labels**:
17+
* Added "Total Attempts" label ({total_attempts})
18+
* Added "Mod version" label ({openhack_ver})
19+
* Added 12-hour clock label ({clock12})
20+
* Added "Mod count" label ({mod_count})
21+
122
## v2.3.2
223
* Resolved issue with "Respawn Delay"
324

CMakeLists.txt

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.15)
22
project(
33
OpenHack
4-
VERSION 2.3.2
4+
VERSION 2.4.0
55
HOMEPAGE_URL "https://github.com/Prevter/OpenHack"
66
LANGUAGES C CXX
77
)
@@ -17,7 +17,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
1717
endif()
1818

1919
# Create build options
20-
option(BUILD_STANDALONE "Build the standalone version" ON)
20+
option(BUILD_STANDALONE "Build the standalone version" OFF)
2121
option(BUILD_GEODE "Build the Geode version" ON)
2222

2323
# Get the latest abbreviated commit hash of the working branch
@@ -68,9 +68,24 @@ target_link_libraries(
6868
INTERFACE
6969
external_libs
7070
opengl32
71-
${CMAKE_SOURCE_DIR}/libs/glew/lib/Release/Win32/glew32.lib
7271
)
7372

73+
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
74+
# Windows 64
75+
target_link_libraries(
76+
${PROJECT_NAME}
77+
INTERFACE
78+
${CMAKE_SOURCE_DIR}/libs/glew/lib/Release/x64/glew32.lib
79+
)
80+
else()
81+
# Windows 32
82+
target_link_libraries(
83+
${PROJECT_NAME}
84+
INTERFACE
85+
${CMAKE_SOURCE_DIR}/libs/glew/lib/Release/Win32/glew32.lib
86+
)
87+
endif()
88+
7489
if (PROJECT_IS_TOP_LEVEL)
7590
target_compile_definitions(${PROJECT_NAME} INTERFACE OPENHACK_EXPORT)
7691
endif()
@@ -124,6 +139,11 @@ endif()
124139
# ========================================
125140
# | Standalone build
126141
# ========================================
142+
if (BUILD_STANDALONE)
143+
message(ERROR "Standalone build is deprecated, please use Geode instead")
144+
return()
145+
endif()
146+
127147
if (NOT BUILD_STANDALONE)
128148
message(STATUS "Standalone build disabled")
129149
return()
@@ -174,7 +194,7 @@ target_compile_definitions(
174194
set_target_properties(
175195
${PROJECT_NAME}-Standalone
176196
PROPERTIES
177-
OUTPUT_NAME "xinput9_1_0"
197+
OUTPUT_NAME "xinput1_4"
178198
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin"
179199
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin"
180200
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin"

README.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<!-- Deprecation notice -->
2+
<div align="center">
3+
<h1>Deprecation Notice!</h1>
4+
<p>This repository is no longer maintained. Please consider using
5+
<a href="https://github.com/EclipseMenu/EclipseMenu">Eclipse Menu</a> instead,
6+
which is a more up-to-date and feature-rich mod for Geometry Dash.</p>
7+
<p>Latest Geometry Dash version supported by OpenHack is 2.204.</p>
8+
</div>
9+
10+
<!-- Old README.md content -->
111
<div align="center">
212
<a href="https://github.com/prevter/gdopenhack/releases/latest">
313
<img src="https://img.shields.io/github/v/release/prevter/gdopenhack" alt="Release version">
@@ -7,15 +17,9 @@
717
<a href="LICENSE">
818
<img src="https://img.shields.io/github/license/prevter/gdopenhack" alt="License">
919
</a>
10-
<a href="https://github.com/prevter/gdopenhack/issues">
11-
<img src="https://img.shields.io/github/issues/prevter/gdopenhack" alt="Issues">
12-
</a>
1320
<a href="https://discord.gg/HaHn7RSJ4Q">
1421
<img src="https://img.shields.io/discord/1195179573122445312?label=discord&logo=discord" alt="Discord">
1522
</a>
16-
<a href="https://www.buymeacoffee.com/prevter">
17-
<img src="https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee" alt="Buy Me A Coffee">
18-
</a>
1923
</div>
2024
<br>
2125
<div align="center">
@@ -28,10 +32,6 @@
2832
</p>
2933
</div>
3034

31-
<div align="center">
32-
Supports both <b>Geode</b> and <b>Vanilla</b> Geometry Dash!
33-
</div>
34-
3535
## Table of Contents
3636
- [About](#about)
3737
- [Features](#features)
@@ -64,7 +64,7 @@ Please visit the [issues](https://github.com/prevter/gdopenhack/issues) page for
6464
- And more!
6565

6666
## Installation
67-
> **Note:** OpenHack is only compatible with Windows and Linux (using Wine). Other operating systems are not supported for now.
67+
> **Note:** OpenHack is only compatible with Windows (also Linux and macOS, if you're using Proton/Wine to run Geometry Dash). Other operating systems are not supported for now.
6868
6969
There are two ways to install OpenHack: using Geode, or manually installing the mod. Each method has its own advantages and disadvantages, so choose the one that best suits your needs.
7070

@@ -128,15 +128,11 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
128128
## License
129129
Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
130130

131-
## Contact
132-
Join the [Discord server](https://discord.gg/HaHn7RSJ4Q) to get in touch with the developers and other users.
133-
134-
If you want to contact me directly, you can do so via
135-
- Discord: `@prevter`
136-
- Email: `support@prevter.me`
137-
138-
## Support
139-
If you like the project, consider supporting it by [buying me a coffee](https://www.buymeacoffee.com/prevter) or by contributing to the project. Any support is greatly appreciated and helps me keep motivated to work on the project and add new features!
131+
[//]: # (## Contact)
132+
[//]: # (Join the [Discord server]&#40;https://discord.gg/HaHn7RSJ4Q&#41; to get in touch with the developers and other users.)
133+
[//]: # (If you want to contact me directly, you can do so via)
134+
[//]: # (- Discord: `@prevter`)
135+
[//]: # (- Email: `support@prevter.me`)
140136

141137
## Acknowledgements
142138
[MegaHack](https://absolllute.com/store/view_mega_hack_pro) by Absolute for design inspiration and ideas.

libs/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,22 @@ target_link_libraries(
2828
)
2929

3030
# Other libraries
31-
add_subdirectory(gd.hpp)
3231
add_subdirectory(json)
3332
add_subdirectory(glfw)
3433
add_subdirectory(discord-rpc)
3534
add_subdirectory(zephyrus)
3635

36+
# Fix debug build
37+
if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND WIN32)
38+
target_compile_definitions(discord-rpc PRIVATE _HAS_ITERATOR_DEBUGGING=0)
39+
target_compile_definitions(Zephyrus PRIVATE _HAS_ITERATOR_DEBUGGING=0)
40+
endif()
41+
3742
# Link all external libraries
3843
target_link_libraries(
3944
external_libs INTERFACE
4045
imgui
4146
glfw
42-
gd.hpp
4347
nlohmann_json::nlohmann_json
4448
discord-rpc
4549
Zephyrus

libs/curl/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
add_library(libcurl INTERFACE)
22

33
target_include_directories(libcurl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
4-
target_link_libraries(libcurl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/libcurl.lib)
4+
5+
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
6+
target_link_libraries(libcurl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/lib/x64/libcurl.lib)
7+
else()
8+
target_link_libraries(libcurl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/lib/x86/libcurl.lib)
9+
endif()

libs/curl/lib/x64/libcurl.lib

20.2 KB
Binary file not shown.
File renamed without changes.

libs/gd.hpp

Lines changed: 0 additions & 1 deletion
This file was deleted.

libs/glew/lib/Release/x64/glew32.lib

228 KB
Binary file not shown.

mod.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
2-
"geode": "2.0.0-beta.26",
2+
"geode": "3.4.0",
33
"gd": {
4-
"win": "2.204"
4+
"win": "2.206"
55
},
6-
"version": "v2.3.2",
6+
"version": "v2.4.0",
77
"id": "prevter.openhack",
88
"name": "OpenHack",
99
"developer": "Prevter",
1010
"description": "A collection of hacks for Geometry Dash",
11-
"tags": [
12-
"Universal",
13-
"Gameplay",
14-
"Cheats"
15-
],
11+
"tags": ["universal", "gameplay", "cheats", "bugfix"],
1612
"repository": "https://github.com/Prevter/GDOpenHack",
1713
"issues": {
1814
"info": "Join the Discord server for support",
@@ -28,7 +24,6 @@
2824
"resources/licenses/*"
2925
]
3026
},
31-
"early-load": true,
3227
"api": {
3328
"include": [
3429
"api/*.hpp"

resources/hacks/level.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22
"title": "Level",
33
"items": [
44
{
5-
"type": "toggle",
6-
"title": "Noclip",
7-
"description": "Disables dying.",
8-
"id": "level.noclip",
9-
"opcodes": [
10-
{
11-
"pattern": "6A148BCBFF15",
12-
"mask": "E9@4(8BCBFF15????^8B4C24?64890D00000000595F5E)"
13-
}
14-
],
15-
"cheat": true
5+
"type": "embedded",
6+
"hack": "noclip"
167
},
178
{
189
"type": "embedded",

0 commit comments

Comments
 (0)