From 35f75bd95915bd6f8d8cf356f9364423c8d3f4c0 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 <116721335+Tsubasa6848@users.noreply.github.com> Date: Mon, 27 May 2024 20:33:44 +0800 Subject: [PATCH] fix: fix version --- src/Entry.cpp | 18 +++++++++--------- src/Entry.h | 10 +++++----- src/Global.h | 6 +++++- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Entry.cpp b/src/Entry.cpp index 725e1d1..aafca38 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -3,14 +3,14 @@ ll::Logger logger(PLUGIN_NAME); -namespace GMLIB_LegacyRemoteCallApi { +namespace GMLIB { -std::unique_ptr& LRCA::getInstance() { - static std::unique_ptr instance; +std::unique_ptr& LegacyRemoteCallApi::getInstance() { + static std::unique_ptr instance; return instance; } -bool LRCA::load() { +bool LegacyRemoteCallApi::load() { Export_Legacy_GMLib_ModAPI(); Export_Legacy_GMLib_ServerAPI(); Export_Compatibility_API(); @@ -20,17 +20,17 @@ bool LRCA::load() { logger.info( "Loaded Version: {} with {}", fmt::format(fg(fmt::color::pink), "GMLIB-" + GMLIB::Version::getLibVersionString()), - fmt::format(fg(fmt::color::light_green), "GMLIB-LegacyRemoteCallApi-"+LIB_VERSION.asString()) + fmt::format(fg(fmt::color::light_green), "GMLIB-LegacyRemoteCallApi-" + LIB_VERSION.asString()) ); logger.info("Author: GroupMountain"); logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi"); 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()); diff --git a/src/Entry.h b/src/Entry.h index 6b8d129..26f70fe 100644 --- a/src/Entry.h +++ b/src/Entry.h @@ -2,14 +2,14 @@ #include #include -namespace GMLIB_LegacyRemoteCallApi { +namespace GMLIB { -class LRCA { +class LegacyRemoteCallApi { public: - static std::unique_ptr& getInstance(); + static std::unique_ptr& 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 diff --git a/src/Global.h b/src/Global.h index 054d234..4add570 100644 --- a/src/Global.h +++ b/src/Global.h @@ -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;