Skip to content

Commit

Permalink
fix: fix entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 29, 2024
1 parent 0cbd439 commit 1c36abf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/after_build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function pack_plugin(target,plugin_define)
local manifestfile = path.join(outputdir, "manifest.json")
local oritargetfile = target:targetfile()
local oripdbfile = path.join(path.directory(oritargetfile), path.basename(oritargetfile) .. ".pdb")
local langfile = path.join(os.projectdir(), "src/lang")

os.mkdir(outputdir)
os.cp(oritargetfile, targetfile)
Expand All @@ -104,6 +105,7 @@ function pack_plugin(target,plugin_define)

formattedmanifest = string_formatter(manifest, plugin_define)
io.writefile(manifestfile,formattedmanifest)
os.cp(langfile, path.join(outputdir, "lang"))
cprint("${bright green}[Plugin Packer]: ${reset}plugin already generated to " .. outputdir)
else
cprint("${bright yellow}warn: ${reset}not found manifest.json in root dir!")
Expand Down
4 changes: 3 additions & 1 deletion src/lse/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "engine/GlobalShareData.h"
#include "engine/LocalShareData.h"
#include "engine/MessageSystem.h"
#include "main/BuiltinCommands.h"
#include "main/EconomicSystem.h"
#include "main/Loader.h"
#include "main/SafeGuardRecord.h"
Expand All @@ -14,6 +15,7 @@
#include <ll/api/plugin/NativePlugin.h>
#include <memory>

ll::Logger logger(LLSE_LOADER_NAME);
namespace lse {

namespace {
Expand All @@ -27,7 +29,7 @@ auto enable(ll::plugin::NativePlugin& /*self*/) -> bool {
auto& logger = getSelfPluginInstance().getLogger();

logger.info("enabling...");

RegisterDebugCommand();
return true;
}

Expand Down

0 comments on commit 1c36abf

Please sign in to comment.