Skip to content

Commit 2f748c2

Browse files
committed
chore: update tooth.json & CHANGELOG.md
1 parent f2899bc commit 2f748c2

9 files changed

+25
-17
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.6.4] - 2024-04-21
9+
10+
### Fixed
11+
12+
- Fix NetworkAPI's callback
13+
- Enlarge NewProcess's buffer #48
14+
815
## [0.6.3] - 2024-04-20
916

1017
### Added

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "native",
55
"description": "A plugin engine for running LLSE plugins on LeviLamina",
66
"author": "LiteLDev",
7-
"version": "0.6.3",
7+
"version": "0.6.4",
88
"dependencies": [
99
{
1010
"name": "LegacyMoney"

src/legacy/api/NativeAPI.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "demangler/MicrosoftDemangle.h"
44
#include "ll/api/memory/Hook.h"
5+
#include "ll/api/memory/Memory.h"
56

67
#include <magic_enum.hpp>
78

@@ -340,13 +341,13 @@ Local<Value> ScriptNativeFunction::fromScript(const Arguments& args) {
340341
);
341342
}
342343

343-
nativeScriptFunction->mEngine = args.engine();
344-
nativeScriptFunction->mNativeCallack = dcbNewCallback(
344+
nativeScriptFunction->mEngine = args.engine();
345+
nativeScriptFunction->mNativeCallback = dcbNewCallback(
345346
nativeScriptFunction->buildDynCallbackSig().c_str(),
346347
&nativeCallbackHandler,
347348
nativeScriptFunction
348349
);
349-
nativeScriptFunction->mFunction = nativeScriptFunction->mNativeCallack;
350+
nativeScriptFunction->mFunction = nativeScriptFunction->mNativeCallback;
350351
nativeScriptFunction->mScriptCallback = args[args.size() - 1].asFunction();
351352

352353
return scriptResult;
@@ -512,15 +513,15 @@ Local<Value> ScriptNativeFunction::hook(const Arguments& args) {
512513
DynamicHookData* hookSymbol = args.engine()->getNativeInstance<DynamicHookData>(scriptResult);
513514
hookSymbol->cloneFrom(NativeFunction(*args.engine()->getNativeInstance<ScriptNativeFunction>(args.thiz())));
514515
hookSymbol->mEngine = args.engine();
515-
hookSymbol->mNativeCallack =
516+
hookSymbol->mNativeCallback =
516517
dcbNewCallback(hookSymbol->buildDynCallbackSig().c_str(), &nativeCallbackHandler, hookSymbol);
517518
hookSymbol->mScriptCallback = args[0].asFunction();
518519
void* hookOriginl = nullptr;
519520
int hookResult = ll::memory::hook(
520521
hookSymbol->mFunction,
521-
&hookOriginl,
522-
(ll::memory::FuncPtr*)hookSymbol->mNativeCallack,
523-
ll::memory::HookPriority::Low
522+
hookSymbol->mNativeCallback,
523+
reinterpret_cast<ll::memory::FuncPtr*>(hookOriginl),
524+
ll::memory::HookPriority::Normal
524525
);
525526
hookSymbol->mFunction = hookOriginl;
526527
return scriptResult;

src/legacy/api/NativeAPI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class ScriptNativeFunction : public NativeFunction, public ScriptClass {
104104

105105
class DynamicHookData : public ScriptNativeFunction {
106106
public:
107-
script::ScriptEngine* mEngine = nullptr;
108-
DCCallback* mNativeCallack = nullptr;
107+
script::ScriptEngine* mEngine = nullptr;
108+
DCCallback* mNativeCallback = nullptr;
109109
script::Global<Function> mScriptCallback;
110110
explicit DynamicHookData(const Local<Object>& scriptObj) : ScriptNativeFunction(scriptObj) {}
111111
explicit DynamicHookData(const Local<Object>& scriptObj, const NativeFunction& symbol)

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/LiteLDev/LegacyScriptEngine",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"info": {
66
"name": "LegacyScriptEngine",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",
@@ -12,7 +12,7 @@
1212
]
1313
},
1414
"dependencies": {
15-
"gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.6.3",
16-
"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.6.3"
15+
"gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.6.4",
16+
"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.6.4"
1717
}
1818
}

tooth.lua.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-lua",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"info": {
66
"name": "LegacyScriptEngine with Lua backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",

tooth.nodejs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"info": {
66
"name": "LegacyScriptEngine with NodeJs backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",

tooth.python.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"info": {
66
"name": "LegacyScriptEngine with Python backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",

tooth.quickjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"info": {
66
"name": "LegacyScriptEngine with QuickJs backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",

0 commit comments

Comments
 (0)