Skip to content

Commit ea102c2

Browse files
committed
Update to 1.17.1, fix position in MP lobby
1 parent 7e6f0b7 commit ea102c2

File tree

10 files changed

+31
-35
lines changed

10 files changed

+31
-35
lines changed

.github/workflows/Pre-Release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
name: Pre-Release Mod
55
env:
66
module_id: clockmod
7-
version: 1.4.0-rc.2
8-
BSVersion: 1.16.4
9-
bs_hook: 2_2_5
10-
codegen: 0_12_5
11-
ndkname: android-ndk-r22
7+
version: 1.5.1-rc.1
8+
BSVersion: 1.17.1
9+
bs_hook: 2_3_0
10+
codegen: 0_14_0
11+
ndkname: android-ndk-r23
1212

1313

1414
jobs:

.github/workflows/Release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ on:
33

44
env:
55
module_id: clockmod
6-
version: 1.5.0
7-
BSVersion: 1.17.0
6+
version: 1.5.1
7+
BSVersion: 1.17.1
88
bs_hook: 2_3_0
9-
codegen: 0_13_0
9+
codegen: 0_14_0
1010
ndkname: android-ndk-r23
1111

1212
name: Release Mod

.github/workflows/buildMod.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ name: NDK build
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ main, dev, 1.16.4 ]
6+
branches: [ main, dev ]
77
pull_request:
8-
branches: [ main, dev, 1.16.4 ]
8+
branches: [ main, dev ]
99

1010
env:
1111
module_id: clockmod
12-
version: 1.5.0-Dev.${{ github.run_number }}
13-
BSVersion: 1.17.0
12+
version: 1.5.1-Dev.${{ github.run_number }}
13+
BSVersion: 1.17.1
1414
bs_hook: 2_3_0
15-
codegen: 0_13_0
15+
codegen: 0_14_0
1616

1717
jobs:
1818
build:

Android.mk

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ LOCAL_EXPORT_C_INCLUDES := extern/beatsaber-hook
2929
LOCAL_SRC_FILES := extern/libbeatsaber-hook_2_3_0.so
3030
LOCAL_CPP_FEATURES += exceptions
3131
include $(PREBUILT_SHARED_LIBRARY)
32-
# Creating prebuilt for dependency: codegen - version: 0.8.1
32+
# Creating prebuilt for dependency: codegen - version: 0.14.0
3333
include $(CLEAR_VARS)
34-
LOCAL_MODULE := codegen_0_13_0
34+
LOCAL_MODULE := codegen
3535
LOCAL_EXPORT_C_INCLUDES := extern/codegen
36-
LOCAL_SRC_FILES := extern/libcodegen_0_13_0.so
36+
LOCAL_SRC_FILES := extern/libcodegen.so
3737
include $(PREBUILT_SHARED_LIBRARY)
3838
# Creating prebuilt for dependency: custom-types - version: 0.8.3
3939
include $(CLEAR_VARS)
@@ -61,11 +61,11 @@ LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.cpp)
6161
LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.c)
6262
LOCAL_SHARED_LIBRARIES += modloader
6363
LOCAL_SHARED_LIBRARIES += beatsaber-hook_2_3_0
64-
LOCAL_SHARED_LIBRARIES += codegen_0_13_0
64+
LOCAL_SHARED_LIBRARIES += codegen
6565
LOCAL_SHARED_LIBRARIES += custom-types
6666
LOCAL_SHARED_LIBRARIES += questui
6767
LOCAL_LDLIBS += -llog
68-
LOCAL_CFLAGS += -I'extern/libil2cpp/il2cpp/libil2cpp' -DID='"clockmod"' -DVERSION='"1.5.0-Dev"' -I'./shared' -I'./extern' -isystem'extern/codegen/include' -Ofast
68+
LOCAL_CFLAGS += -I'extern/libil2cpp/il2cpp/libil2cpp' -DID='"clockmod"' -DVERSION='"1.5.1-Dev"' -I'./shared' -I'./extern' -isystem'extern/codegen/include' -Ofast
6969
LOCAL_CPPFLAGS += -std=c++2a -Ofast
7070
LOCAL_C_INCLUDES += ./include ./src
7171
include $(BUILD_SHARED_LIBRARY)

Android_Template.mk

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ LOCAL_EXPORT_C_INCLUDES := extern/beatsaber-hook
2929
LOCAL_SRC_FILES := extern/libbeatsaber-hook_{BS_Hook}.so
3030
LOCAL_CPP_FEATURES += exceptions
3131
include $(PREBUILT_SHARED_LIBRARY)
32-
# Creating prebuilt for dependency: codegen - version: 0.8.1
32+
# Creating prebuilt for dependency: codegen - version: 0.14.0
3333
include $(CLEAR_VARS)
34-
LOCAL_MODULE := codegen_{CG_VER}
34+
LOCAL_MODULE := codegen
3535
LOCAL_EXPORT_C_INCLUDES := extern/codegen
36-
LOCAL_SRC_FILES := extern/libcodegen_{CG_VER}.so
36+
LOCAL_SRC_FILES := extern/libcodegen.so
3737
include $(PREBUILT_SHARED_LIBRARY)
3838
# Creating prebuilt for dependency: custom-types - version: 0.8.3
3939
include $(CLEAR_VARS)
@@ -61,7 +61,7 @@ LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.cpp)
6161
LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.c)
6262
LOCAL_SHARED_LIBRARIES += modloader
6363
LOCAL_SHARED_LIBRARIES += beatsaber-hook_{BS_Hook}
64-
LOCAL_SHARED_LIBRARIES += codegen_{CG_VER}
64+
LOCAL_SHARED_LIBRARIES += codegen
6565
LOCAL_SHARED_LIBRARIES += custom-types
6666
LOCAL_SHARED_LIBRARIES += questui
6767
LOCAL_LDLIBS += -llog

build.ps1

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
$NDKPath = Get-Content $PSScriptRoot/ndkpath.txt
22
if ($args.Count -eq 0 -or $args[0] -eq "--release") {
33
$ModID = "clockmod"
4-
if ($args[0] -eq "--release") {
5-
$VERSION = "1.5.0"
6-
} else {
7-
$VERSION = "1.5.0-Dev"
4+
$VERSION = "1.5.1"
5+
if ($args[0] -ne "--release") {
6+
$VERSION += "-Dev"
87
}
98
$BSHook = "2_3_0"
10-
$codegen_ver = "0_13_0"
119
}
1210

1311
if ($args[0] -eq "--actions") {
1412
$ModID = $env:module_id
1513
$BSHook = $env:bs_hook
1614
$VERSION = $env:version
17-
$codegen_ver = $env:codegen
1815
}
1916
echo "Building mod with ModID: $ModID version: $VERSION, BS-Hook version: $BSHook"
2017
Copy-Item "./Android_Template.mk" "./Android.mk" -Force
2118
(Get-Content "./Android.mk").replace('{BS_Hook}', "$BSHook") | Set-Content "./Android.mk"
2219
(Get-Content "./Android.mk").replace('{VERSION}', "$VERSION") | Set-Content "./Android.mk"
23-
(Get-Content "./Android.mk").replace('{CG_VER}', "$codegen_ver") | Set-Content "./Android.mk"
2420

2521
$buildScript = "$NDKPath/build/ndk-build"
2622
if (-not ($PSVersionTable.PSEdition -eq "Core")) {

buildQMOD.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Builds a .qmod file for loading with QP
22
if ($args.Count -eq 0 -or $args[0] -eq "--dev") {
33
$ModID = "clockmod"
4-
$VERSION = "1.5.0"
4+
$VERSION = "1.5.1"
55
if ($args[0] -eq "--dev") {
66
$VERSION += "-Dev"
77
}
88
$BSHook = "2_3_0"
9-
$BS_Version = "1.17.0"
9+
$BS_Version = "1.17.1"
1010
echo "Compiling Mod"
1111
if ($args[0] -eq "--dev") {
1212
& $PSScriptRoot/build.ps1

mod.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"_QPVersion": "0.1.1",
33
"id": "clockmod",
44
"name": "Clock Mod",
5-
"version": "1.5.0",
5+
"version": "1.5.1",
66
"author": "BoopetyDoopety, EnderdracheLP",
77
"packageId": "com.beatgames.beatsaber",
8-
"packageVersion": "1.17.0",
8+
"packageVersion": "1.17.1",
99
"description": "Displays the time in game. Alternatively also the Battery Percentage",
1010
"coverImage": "Cover.jpg",
1111
"modFiles": [

qpm.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
{
2222
"id": "codegen",
23-
"versionRange": "^0.13.0",
23+
"versionRange": "^0.14.0",
2424
"additionalData": {}
2525
},
2626
{

src/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ UnityEngine::UI::VerticalLayoutGroup* layout;
101101

102102
// Function that sets the ClockPosition for Multiplayer Lobbies.
103103
void MPLobbyClockPos(float MLobbyVCPosY) {
104-
layout->get_transform()->set_position(UnityEngine::Vector3(0, MLobbyVCPosY-1, 1.62));
104+
layout->get_transform()->set_position(UnityEngine::Vector3(0, MLobbyVCPosY-1, 1.75));
105105
layout->get_transform()->set_localScale(UnityEngine::Vector3(0.35, 0.35, 0.35));
106106
layout->get_gameObject()->get_transform()->GetParent()->set_eulerAngles(UnityEngine::Vector3(0, 0, 0));
107107
}

0 commit comments

Comments
 (0)