fix: fix version logic
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user