Skip to content

Commit

Permalink
fix: fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Feb 3, 2025
1 parent 6e3d596 commit 2eeeef6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/legacy/engine/EngineOwnData.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#pragma once
#include "dyncall/dyncall.h"
#include "legacy/main/Global.h"
#include "ll/api/base/Macro.h"
#include "ll/api/mod/Mod.h"
Expand Down Expand Up @@ -81,9 +80,6 @@ struct EngineOwnData {
// Player binding data
std::unordered_map<std::string, script::Global<Value>> playerDataDB;

// Dynamic Call vm for NativeFFI
DCCallVM* dynamicCallVM;

// Unload Callbacks, use for close database...
int index = 0;
std::unordered_map<int, std::function<void(ScriptEngine*)>> unloadCallbacks;
Expand All @@ -92,12 +88,6 @@ struct EngineOwnData {
return index;
}
inline bool removeUnloadCallback(int pIndex) { return unloadCallbacks.erase(pIndex); }

// Init
EngineOwnData() {
dynamicCallVM = dcNewCallVM(4096);
dcMode(dynamicCallVM, DC_CALL_C_DEFAULT);
}
};

// Engine additional data
Expand Down

0 comments on commit 2eeeef6

Please sign in to comment.