Skip to content

Commit

Permalink
Merge pull request #10 from rui2015/main
Browse files Browse the repository at this point in the history
Update bs-hook and game versions for Beat Saber 1.17.1
  • Loading branch information
Lauriethefish authored Sep 15, 2021
2 parents 02e6ba0 + e6aa1a5 commit c0c5b55
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ A template for creating Beat Saber mods for the Oculus Quest. This template take

This template is set up for downloading dependencies using QPM. You can find more info about getting started with Quest modding [here](https://github.com/danrouse/beatsaber-quest-modding-guide).

Created by [Lauriethefish](https://github.com/Lauriethefish) and [danrouse](https://github.com/danrouse).
Created by [Lauriethefish](https://github.com/Lauriethefish) and [danrouse](https://github.com/danrouse).
6 changes: 3 additions & 3 deletions template/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ include $(PREBUILT_SHARED_LIBRARY)

# Build the beatsaber-hook shared library, SPECIFICALLY VERSIONED!
include $(CLEAR_VARS)
LOCAL_MODULE := beatsaber-hook_1_2_4
LOCAL_MODULE := beatsaber-hook_2_3_0
LOCAL_EXPORT_C_INCLUDES := extern/beatsaber-hook
LOCAL_SRC_FILES := extern/libbeatsaber-hook_1_2_4.so
LOCAL_SRC_FILES := extern/libbeatsaber-hook_2_3_0.so
LOCAL_CPP_FEATURES += exceptions
include $(PREBUILT_SHARED_LIBRARY)

Expand All @@ -39,7 +39,7 @@ LOCAL_SRC_FILES += $(call rwildcard,src/,*.cpp)
LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.cpp)
LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.c)
LOCAL_SHARED_LIBRARIES += modloader
LOCAL_SHARED_LIBRARIES += beatsaber-hook_1_2_4
LOCAL_SHARED_LIBRARIES += beatsaber-hook_2_3_0
LOCAL_LDLIBS += -llog
LOCAL_CFLAGS += -I'extern/libil2cpp/il2cpp/libil2cpp' -DID='"#{id}"' -DVERSION='"0.1.0"' -I'./shared' -I'./extern' -isystem'extern/codegen/include'
LOCAL_CPPFLAGS += -std=c++2a
Expand Down
4 changes: 2 additions & 2 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
## Credits

* [zoller27osu](https://github.com/zoller27osu), [Sc2ad](https://github.com/Sc2ad) and [jakibaki](https://github.com/jakibaki) - [beatsaber-hook](https://github.com/sc2ad/beatsaber-hook)
* [raftario](https://github.com/raftario)
* [Lauriethefish](https://github.com/Lauriethefish) and [danrouse](https://github.com/danrouse) for [this template](https://github.com/Lauriethefish/quest-mod-template)
* [raftario](https://github.com/raftario)
* [Lauriethefish](https://github.com/Lauriethefish) and [danrouse](https://github.com/danrouse) for [this template](https://github.com/Lauriethefish/quest-mod-template)
2 changes: 1 addition & 1 deletion template/buildQMOD.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ $ArchiveName = "#{id}_v0.1.0.qmod"
$TempArchiveName = "#{id}_v0.1.0.qmod.zip"

& $buildScript NDK_PROJECT_PATH=$PSScriptRoot APP_BUILD_SCRIPT=$PSScriptRoot/Android.mk NDK_APPLICATION_MK=$PSScriptRoot/Application.mk
Compress-Archive -Path "./libs/arm64-v8a/lib#{id}.so", "./libs/arm64-v8a/libbeatsaber-hook_1_2_4.so", "./mod.json" -DestinationPath $TempArchiveName -Force
Compress-Archive -Path "./libs/arm64-v8a/lib#{id}.so", "./libs/arm64-v8a/libbeatsaber-hook_2_3_0.so", "./mod.json" -DestinationPath $TempArchiveName -Force
Move-Item $TempArchiveName $ArchiveName -Force
1 change: 1 addition & 0 deletions template/include/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "beatsaber-hook/shared/utils/logging.hpp"
#include "beatsaber-hook/shared/config/config-utils.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-functions.hpp"
#include "beatsaber-hook/shared/utils/hooking.hpp"

// Define these functions here so that we can easily read configuration and log information from other files
Configuration& getConfig();
Expand Down
4 changes: 2 additions & 2 deletions template/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"author": "#{author}",
"version": "0.1.0",
"packageId": "com.beatgames.beatsaber",
"packageVersion": "1.14.0",
"packageVersion": "1.17.1",
"description": "#{description}",
"modFiles": [
"lib#{id}.so"
],
"libraryFiles": [
"libbeatsaber-hook_1_2_4.so"
"libbeatsaber-hook_2_3_0.so"
]
}

0 comments on commit c0c5b55

Please sign in to comment.