adapt: adapt GMLIB v0.13.0

This commit is contained in:
EpsilonZunsat
2024-06-21 13:51:38 +08:00
Unverified
parent 1c17867ea8
commit 02ef60b69c
7 changed files with 13 additions and 13 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: xmake-io/github-action-setup-xmake@v1 - uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
- run: | - run: |
xmake repo -u xmake repo -u
+2 -1
View File
@@ -15,7 +15,8 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: xmake-io/github-action-setup-xmake@v1 - uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
- run: | - run: |
xmake repo -u xmake repo -u
Submodule SDK-GMLIB deleted from 710cc6e4c3
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "${pluginName}", "name": "${pluginName}",
"entry": "${pluginFile}", "entry": "${pluginFile}",
"version": "0.12.1", "version": "0.13.0",
"author": "GroupMountain", "author": "GroupMountain",
"description": "Check Player's Inventory", "description": "Check Player's Inventory",
"type": "native", "type": "native",
+1 -1
View File
@@ -2,7 +2,7 @@
#include <include_all.h> #include <include_all.h>
#define PLUGIN_NAME "InventoryCheck" #define PLUGIN_NAME "InventoryCheck"
#define TARGET_PROTOCOL 671 #define TARGET_PROTOCOL 685
extern ll::Logger logger; extern ll::Logger logger;
+3 -3
View File
@@ -1,7 +1,7 @@
{ {
"format_version": 2, "format_version": 2,
"tooth": "github.com/GroupMountain/InventoryCheck", "tooth": "github.com/GroupMountain/InventoryCheck",
"version": "0.12.1", "version": "0.13.0",
"info": { "info": {
"name": "InventoryCheck", "name": "InventoryCheck",
"description": "Check Player's Inventory", "description": "Check Player's Inventory",
@@ -14,9 +14,9 @@
"gmlib" "gmlib"
] ]
}, },
"asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.12.1/InventoryCheck-windows-x64.zip", "asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.13.0/InventoryCheck-windows-x64.zip",
"dependencies": { "dependencies": {
"github.com/GroupMountain/GMLIB": ">=0.12.6" "github.com/GroupMountain/GMLIB": ">=0.13.0"
}, },
"files": { "files": {
"place": [ "place": [
+4 -5
View File
@@ -1,6 +1,7 @@
add_rules("mode.debug", "mode.release") add_rules("mode.debug", "mode.release")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git") add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
add_repositories("groupmountain-repo https://github.com/GroupMountain/xmake-repo.git")
if not has_config("vs_runtime") then if not has_config("vs_runtime") then
set_runtimes("MD") set_runtimes("MD")
@@ -8,6 +9,7 @@ end
-- Option 1: Use the latest version of LeviLamina released on GitHub. -- Option 1: Use the latest version of LeviLamina released on GitHub.
add_requires("levilamina") add_requires("levilamina")
add_requires("gmlib")
-- Option 2: Use a specific version of LeviLamina released on GitHub. -- Option 2: Use a specific version of LeviLamina released on GitHub.
-- add_requires("levilamina x.x.x") -- add_requires("levilamina x.x.x")
@@ -52,15 +54,12 @@ target("InventoryCheck") -- Change this to your plugin name.
add_files( add_files(
"src/**.cpp" "src/**.cpp"
) )
add_links(
"SDK-GMLIB/Lib/GMLIB"
)
add_includedirs( add_includedirs(
"SDK-GMLIB",
"src" "src"
) )
add_packages( add_packages(
"levilamina" "levilamina",
"gmlib"
) )
add_shflags( add_shflags(
"/DELAYLOAD:bedrock_server.dll" -- Magic to import symbols from BDS "/DELAYLOAD:bedrock_server.dll" -- Magic to import symbols from BDS