Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #3

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1

with:
xmake-version: branch@master
- run: |
xmake repo -u

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1

with:
xmake-version: branch@master
- run: |
xmake repo -u

Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion SDK-GMLIB
Submodule SDK-GMLIB deleted from 920b4e
1 change: 1 addition & 0 deletions src/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bool Entry::enable() {
mI18n->updateOrCreateLanguage("en_US", en_US);
mI18n->updateOrCreateLanguage("zh_CN", zh_CN);
mI18n->loadAllLanguages();
mI18n->chooseLanguage(mConfig->language);//maybe
checkBanTimeTask();
RegisterCommands();
listenEvent();
Expand Down
10 changes: 5 additions & 5 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
add_rules("mode.debug", "mode.release", "mode.releasedbg")

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
set_runtimes("MD")
end

-- Option 1: Use the latest version of LeviLamina released on GitHub.
add_requires("levilamina")
add_requires("gmlib")

-- Option 2: Use a specific version of LeviLamina released on GitHub.
-- add_requires("levilamina x.x.x")
Expand Down Expand Up @@ -51,22 +53,20 @@ target("GMBlacklist") -- Change this to your plugin name.
add_files(
"src/**.cpp"
)
add_links(
"SDK-GMLIB/Lib/GMLIB"
)
add_includedirs(
"SDK-GMLIB",
"src"
)
add_packages(
"levilamina"
"levilamina",
"gmlib"
)
add_shflags(
"/DELAYLOAD:bedrock_server.dll" -- Magic to import symbols from BDS
)
set_exceptions("none") -- To avoid conflicts with /EHa
set_kind("shared")
set_languages("cxx23")
set_symbols("debug")

after_build(function (target)
local plugin_packer = import("scripts.after_build")
Expand Down
Loading