Skip to content

Commit 0f70bde

Browse files
committed
chore: update xmake.lua
1 parent 3f1b320 commit 0f70bde

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/legacy/api/DataAPI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,9 @@ Local<Value> DataClass::getAllPlayerInfo(const Arguments& args) {
746746
try {
747747
auto arr = Array::newArray();
748748
auto level = ll::service::getLevel();
749+
ll::service::PlayerInfo::getInstance().forEach([](ll::service::PlayerInfo::PlayerInfoEntry& info) {
750+
return true;
751+
});
749752
if (level.has_value()) {
750753
level->forEachPlayer([&arr](Player& player) {
751754
auto obj = Object::newObject();

xmake.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ add_requires(
1313
"lightwebsocketclient",
1414
"magic_enum",
1515
"nlohmann_json",
16-
"openssl 1.1.1-w",
1716
"simpleini",
1817
"sqlite3 3.43.0+200",
19-
"toml++"
18+
"toml++",
19+
"cpp-httplib v0.14.0", {configs={ssl=true, zlib=true}}
2020
)
21-
add_requires("cpp-httplib v0.14.0", {configs={ssl=true, zlib=true}})
2221

2322
if is_config("backend", "lua") then
2423
add_requires("scriptx main", {configs={backend="Lua"}})
@@ -50,7 +49,6 @@ target("legacy-script-engine")
5049
)
5150
add_defines(
5251
"_HAS_CXX23=1",
53-
"CPPHTTPLIB_OPENSSL_SUPPORT",
5452
"NOMINMAX",
5553
"UNICODE",
5654
"_AMD64_"

0 commit comments

Comments
 (0)