fix: fix version match

This commit is contained in:
Tsubasa6848
2024-02-24 11:27:41 +08:00
Unverified
parent ede771a966
commit 1bd3270ecf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ void Export_Compatibility_API() {
});
RemoteCall::exportAs("GMLIB_API", "isVersionMatched", [](int a, int b, int c) -> bool {
auto version = SemVersion(a, b, c, "", "");
return version.satisfies(LIB_VERSION);
return LIB_VERSION.satisfies(version);
});
RemoteCall::exportAs("GMLIB_API", "getVersion_LRCA", []() -> std::string { return LIB_VERSION.asString(); });
RemoteCall::exportAs("GMLIB_API", "getVersion_GMLIB", []() -> std::string {