Skip to content

Commit 2a7c85d

Browse files
committed
Update for 1.40.2
- Update build script - Update workflows - Add inline-hook to CMakeLists.txt - Sort qpm dependencies
1 parent e9c8476 commit 2a7c85d

File tree

10 files changed

+148
-123
lines changed

10 files changed

+148
-123
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,21 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
name: Checkout
2121
with:
2222
submodules: true
2323
lfs: true
2424

2525
- uses: seanmiddleditch/gha-setup-ninja@v3
2626

27-
- name: Create ndkpath.txt
28-
run: |
29-
echo "$ANDROID_NDK_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt
30-
cat ${GITHUB_WORKSPACE}/ndkpath.txt
31-
3227
- name: QPM Action
33-
uses: Fernthedev/qpm-action@main
28+
uses: Fernthedev/qpm-action@v1
3429
with:
3530
workflow_token: ${{ secrets.GITHUB_TOKEN }}
36-
31+
resolve_ndk: true
3732
restore: true
3833
cache: true
39-
4034
publish: false
4135

4236
- name: List Post Restore

.github/workflows/publish.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,22 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323
name: Checkout
2424
with:
2525
submodules: true
2626
lfs: true
2727

2828
- uses: seanmiddleditch/gha-setup-ninja@v3
2929

30-
- name: Create ndkpath.txt
31-
run: |
32-
echo "$ANDROID_NDK_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt
33-
cat ${GITHUB_WORKSPACE}/ndkpath.txt
34-
3530
- name: QPM Action
36-
uses: Fernthedev/qpm-action@main
31+
uses: Fernthedev/qpm-action@v1
3732
with:
3833
workflow_token: ${{ secrets.GITHUB_TOKEN }}
39-
34+
resolve_ndk: true
4035
restore: true
4136
cache: true
4237
version: "${{ github.event.inputs.version }}"
43-
4438
publish: false
4539

4640
- name: List Post Restore

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ add_compile_definitions(MOD_ID=\"${MOD_ID}\")
3232
recurse_files(cpp_file_list ${SOURCE_DIR}/*.cpp)
3333
recurse_files(c_file_list ${SOURCE_DIR}/*.c)
3434

35+
recurse_files(src_inline_hook_beatsaber_hook_local_extra_c ${EXTERN_DIR}/includes/beatsaber-hook/shared/inline-hook/*.c)
36+
recurse_files(src_inline_hook_beatsaber_hook_local_extra_cpp ${EXTERN_DIR}/includes/beatsaber-hook/shared/inline-hook/*.cpp)
37+
3538
# add all src files to compile
36-
add_library(${COMPILE_ID} SHARED ${cpp_file_list} ${c_file_list})
39+
add_library(${COMPILE_ID} SHARED ${cpp_file_list} ${c_file_list} ${src_inline_hook_beatsaber_hook_local_extra_c} ${src_inline_hook_beatsaber_hook_local_extra_cpp})
3740

3841
target_include_directories(${COMPILE_ID} PRIVATE .)
3942

cover.png

-565 KB
Loading

include/settings.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
#include "HMUI/ViewController.hpp"
44
#include "config-utils/shared/config-utils.hpp"
55

6-
DECLARE_CONFIG(Config,
6+
DECLARE_CONFIG(Config) {
77
CONFIG_VALUE(ShowWarning, bool, "Show Warning", false, "Shows the health warning when the game launches");
88
CONFIG_VALUE(OverrideLength, bool, "Override Scene Transitions", true, "Forces all scene transitions to be a specific duration");
99
CONFIG_VALUE(TransitionLength, float, "Scene Transitions Length", 0.2, "The duration to force for all transitions");
10-
)
10+
};
1111

1212
void SettingsDidActivate(HMUI::ViewController* self, bool firstActivation, bool addedToHierarchy, bool screenSystemEnabling);

mod.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"version": "${version}",
77
"modloader": "Scotland2",
88
"packageId": "com.beatgames.beatsaber",
9-
"packageVersion": "1.37.0_9064817954",
9+
"packageVersion": "1.40.2_4113",
1010
"description": "Speed up or remove boring transitions in the game",
1111
"coverImage": "cover.png",
1212
"dependencies": [],

qpm.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/QuestPackageManager/QPM.Package/refs/heads/main/qpm.schema.json",
3+
"version": "0.4.0",
24
"sharedDir": "shared",
35
"dependenciesDir": "extern",
46
"info": {
57
"name": "Transitions",
68
"id": "transitions",
7-
"version": "1.2.0",
9+
"version": "1.2.1",
810
"url": null,
911
"additionalData": {
1012
"overrideSoName": "libtransitions.so"
@@ -36,52 +38,51 @@
3638
"pwsh ./scripts/pull-tombstone.ps1 -analyze"
3739
]
3840
},
39-
"qmodIncludeDirs": [],
41+
"ndk": "^27.2.12479018",
42+
"qmodIncludeDirs": [
43+
"build",
44+
"extern/libs"
45+
],
4046
"qmodIncludeFiles": [],
4147
"qmodOutput": null
4248
},
4349
"dependencies": [
4450
{
4551
"id": "beatsaber-hook",
46-
"versionRange": "^5.1.9",
47-
"additionalData": {
48-
"extraFiles": [
49-
"src/inline-hook"
50-
]
51-
}
52+
"versionRange": "^6.4.0",
53+
"additionalData": {}
5254
},
5355
{
54-
"id": "scotland2",
55-
"versionRange": "^0.1.0",
56-
"additionalData": {
57-
"includeQmod": false
58-
}
56+
"id": "bs-cordl",
57+
"versionRange": "^4020.0.0",
58+
"additionalData": {}
5959
},
6060
{
61-
"id": "config-utils",
62-
"versionRange": "^1.1.0",
61+
"id": "bsml",
62+
"versionRange": "^0.4.49",
6363
"additionalData": {}
6464
},
6565
{
66-
"id": "bsml",
67-
"versionRange": "^0.4.18",
66+
"id": "config-utils",
67+
"versionRange": "^2.0.2",
6868
"additionalData": {}
6969
},
7070
{
7171
"id": "custom-types",
72-
"versionRange": "^0.17.10",
72+
"versionRange": "^0.18.2",
7373
"additionalData": {}
7474
},
7575
{
76-
"id": "bs-cordl",
77-
"versionRange": "^3700.0.0",
76+
"id": "paper2_scotland2",
77+
"versionRange": "^4.5.0",
7878
"additionalData": {}
7979
},
8080
{
81-
"id": "paper",
82-
"versionRange": "^3.6.1",
83-
"additionalData": {}
81+
"id": "scotland2",
82+
"versionRange": "^0.1.6",
83+
"additionalData": {
84+
"includeQmod": false
85+
}
8486
}
85-
],
86-
"additionalData": {}
87-
}
87+
]
88+
}

0 commit comments

Comments
 (0)