fix: fix version

This commit is contained in:
Tsubasa6848
2024-05-27 20:33:44 +08:00
Unverified
parent 1929e0b99d
commit 35f75bd959
3 changed files with 19 additions and 15 deletions
+8 -8
View File
@@ -3,14 +3,14 @@
ll::Logger logger(PLUGIN_NAME);
namespace GMLIB_LegacyRemoteCallApi {
namespace GMLIB {
std::unique_ptr<LRCA>& LRCA::getInstance() {
static std::unique_ptr<LRCA> instance;
std::unique_ptr<LegacyRemoteCallApi>& LegacyRemoteCallApi::getInstance() {
static std::unique_ptr<LegacyRemoteCallApi> instance;
return instance;
}
bool LRCA::load() {
bool LegacyRemoteCallApi::load() {
Export_Legacy_GMLib_ModAPI();
Export_Legacy_GMLib_ServerAPI();
Export_Compatibility_API();
@@ -27,10 +27,10 @@ bool LRCA::load() {
return true;
}
bool LRCA::enable() { return true; }
bool LegacyRemoteCallApi::enable() { return true; }
bool LRCA::disable() { return true; }
bool LegacyRemoteCallApi::disable() { return true; }
} // namespace GMLIB_LegacyRemoteCallApi
} // namespace GMLIB
LL_REGISTER_PLUGIN(GMLIB_LegacyRemoteCallApi::LRCA, GMLIB_LegacyRemoteCallApi::LRCA::getInstance());
LL_REGISTER_PLUGIN(GMLIB::LegacyRemoteCallApi, GMLIB::LegacyRemoteCallApi::getInstance());
+5 -5
View File
@@ -2,14 +2,14 @@
#include <ll/api/plugin/NativePlugin.h>
#include <ll/api/plugin/RegisterHelper.h>
namespace GMLIB_LegacyRemoteCallApi {
namespace GMLIB {
class LRCA {
class LegacyRemoteCallApi {
public:
static std::unique_ptr<LRCA>& getInstance();
static std::unique_ptr<LegacyRemoteCallApi>& getInstance();
LRCA(ll::plugin::NativePlugin& self) : mSelf(self) {}
LegacyRemoteCallApi(ll::plugin::NativePlugin& self) : mSelf(self) {}
[[nodiscard]] ll::plugin::NativePlugin& getSelf() const { return mSelf; }
@@ -30,4 +30,4 @@ private:
ll::plugin::NativePlugin& mSelf;
};
} // namespace GMLIB_LegacyRemoteCallApi
} // namespace GMLIB
+5 -1
View File
@@ -5,7 +5,11 @@
#define PLUGIN_NAME fmt::format(fg(fmt::color::light_green), "GMLIB-LRCA")
#define LIB_VERSION GMLIB::Version(0, 12, 6)
#define LIB_VERSION_MAJOR 0
#define LIB_VERSION_MINOR 12
#define LIB_VERSION_PATCH 7
#define LIB_VERSION GMLIB::Version(LIB_VERSION_MAJOR, LIB_VERSION_MINOR, LIB_VERSION_PATCH)
extern ll::Logger logger;