fix: fix version logic

This commit is contained in:
Tsubasa6848
2024-05-13 20:39:38 +08:00
Unverified
parent ce6049cfe9
commit 531ee704ac
5 changed files with 12 additions and 22 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ void Export_Compatibility_API() {
});
RemoteCall::exportAs("GMLIB_API", "isVersionMatched", [](int a, int b, int c) -> bool {
auto version = GMLIB::Version(a, b, c, "", "");
return version >= LIB_VERSION;
return LIB_VERSION >= version;
});
RemoteCall::exportAs("GMLIB_API", "getVersion_LRCA", []() -> std::string { return LIB_VERSION.asString(); });
RemoteCall::exportAs("GMLIB_API", "getVersion_GMLIB", []() -> std::string {
+1 -1
View File
@@ -5,7 +5,7 @@
#define PLUGIN_NAME fmt::format(fg(fmt::color::light_green), "GMLIB-LRCA")
#define LIB_VERSION GMLIB::Version(0, 12, 4)
#define LIB_VERSION GMLIB::Version(0, 12, 5)
extern ll::Logger logger;