Skip to content

Commit a264602

Browse files
committed
feat: adapt to levilamina 1.9.x
1 parent 44c866b commit a264602

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/gmsidebar/Command.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace gmsidebar {
1313

1414
void Entry::registerCmd() {
1515
using namespace ll::i18n_literals;
16-
auto& cmd = ll::command::CommandRegistrar::getInstance().getOrCreateCommand(
16+
auto& cmd = ll::command::CommandRegistrar::getInstance(false).getOrCreateCommand(
1717
"gmsidebar",
1818
"Turn on or off the sidebar"_tr()
1919
);

tooth.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "github.com/GroupMountain/GMSidebar",
4-
"version": "1.2.0",
4+
"version": "1.3.0",
55
"info": {
66
"name": "GMSidebar",
77
"description": "High Performance Sidebar Mod",
@@ -15,8 +15,8 @@
1515
},
1616
"asset_url": "https://github.com/GroupMountain/GMSidebar/releases/download/v$(version)/GMSidebar-windows-x64.zip",
1717
"dependencies": {
18-
"github.com/LiteLDev/LeviLamina": ">=1.7.0",
19-
"github.com/GroupMountain/GMLIB": ">=1.7.0"
18+
"github.com/LiteLDev/LeviLamina": ">=1.9.0",
19+
"github.com/GroupMountain/GMLIB": ">=1.9.0"
2020
},
2121
"files": {
2222
"place": [

xmake.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ add_rules("mode.debug", "mode.release")
33
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
44
add_repositories("groupmountain-repo https://github.com/GroupMountain/xmake-repo.git")
55

6-
add_requires("levilamina 1.7.1", {configs = {target_type = "server"}})
7-
add_requires("levibuildscript 0.5.2")
8-
add_requires("gmlib 1.7.0")
6+
add_requires("levilamina 1.9.5", {configs = {target_type = "server"}})
7+
add_requires("levibuildscript 0.6.0")
8+
add_requires("gmlib 1.9.0")
99

1010
if not has_config("vs_runtime") then
1111
set_runtimes("MD")
@@ -31,6 +31,7 @@ target("GMSidebar")
3131
"_HAS_CXX23=1",
3232
"GMSidebar_EXPORTS"
3333
)
34+
add_defines("LL_PLAT_S") --TODO: check client compatibility
3435
add_packages(
3536
"levilamina",
3637
"gmlib"

0 commit comments

Comments
 (0)