chore: update License

This commit is contained in:
Tsubasa6848
2024-02-27 16:30:34 +08:00
Unverified
parent b4609b0912
commit 8b7bf46ef9
6 changed files with 696 additions and 31 deletions
+6 -6
View File
@@ -10,7 +10,7 @@
#include <stdexcept>
ll::Logger logger(PLUGIN_NAME);
namespace change_this {
namespace InventoryCheck {
namespace {
@@ -71,13 +71,13 @@ auto getSelfPluginInstance() -> ll::plugin::NativePlugin& {
return *selfPluginInstance;
}
} // namespace change_this
} // namespace InventoryCheck
extern "C" {
_declspec(dllexport) auto ll_plugin_disable(ll::plugin::NativePlugin& self) -> bool {
return change_this::disable(self);
return InventoryCheck::disable(self);
}
_declspec(dllexport) auto ll_plugin_enable(ll::plugin::NativePlugin& self) -> bool { return change_this::enable(self); }
_declspec(dllexport) auto ll_plugin_load(ll::plugin::NativePlugin& self) -> bool { return change_this::load(self); }
_declspec(dllexport) auto ll_plugin_unload(ll::plugin::NativePlugin& self) -> bool { return change_this::unload(self); }
_declspec(dllexport) auto ll_plugin_enable(ll::plugin::NativePlugin& self) -> bool { return InventoryCheck::enable(self); }
_declspec(dllexport) auto ll_plugin_load(ll::plugin::NativePlugin& self) -> bool { return InventoryCheck::load(self); }
_declspec(dllexport) auto ll_plugin_unload(ll::plugin::NativePlugin& self) -> bool { return InventoryCheck::unload(self); }
}
+2 -2
View File
@@ -2,8 +2,8 @@
#include <ll/api/plugin/NativePlugin.h>
namespace change_this {
namespace InventoryCheck {
[[nodiscard]] auto getSelfPluginInstance() -> ll::plugin::NativePlugin&;
} // namespace change_this
} // namespace InventoryCheck
+2 -3
View File
@@ -1,7 +1,6 @@
#pragma once
#include <ll/api/Logger.h>
// #include <include_all.h>
#include <include_all.h>
#define PLUGIN_NAME "plugin"
#define PLUGIN_NAME "InventoryCheck"
extern ll::Logger logger;