From 01ebf91b4335977a41719d27bff0dac657fcd6d2 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 <116721335+Tsubasa6848@users.noreply.github.com> Date: Sat, 24 Feb 2024 11:11:23 +0800 Subject: [PATCH] feat: add version to js-lib --- lib/GMLIB_API-JS.js | 5 ++++- src/Plugin.cpp | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/GMLIB_API-JS.js b/lib/GMLIB_API-JS.js index 7b0c089..d97fc34 100644 --- a/lib/GMLIB_API-JS.js +++ b/lib/GMLIB_API-JS.js @@ -35,7 +35,10 @@ const GMLIB_API = { registerBrewingMixRecipe: ll.import("GMLib_ModAPI", "registerBrewingMixRecipe"), registerFurnaceRecipe: ll.import("GMLib_ModAPI", "registerFurnaceRecipe"), registerShapedRecipe: ll.import("GMLib_ModAPI", "registerShapedRecipe"), - registerShapelessRecipe: ll.import("GMLib_ModAPI", "registerShapelessRecipe") + registerShapelessRecipe: ll.import("GMLib_ModAPI", "registerShapelessRecipe"), + isVersionMatched: ll.import("GMLIB_API", "isVersionMatched"), + getVersion_LRCA: ll.import("GMLIB_API", "getVersion_LRCA"), + getVersion_GMLIB: ll.import("GMLIB_API", "getVersion_GMLIB") } const FloatingTextList = []; diff --git a/src/Plugin.cpp b/src/Plugin.cpp index a8dd1ad..6246abd 100644 --- a/src/Plugin.cpp +++ b/src/Plugin.cpp @@ -12,6 +12,7 @@ Plugin::Plugin(ll::plugin::NativePlugin& self) : mSelf(self) { Export_Compatibility_API(); ExportPAPI(); logger.info("GMLIB-LegacyRemoteCallApi Loaded!"); + logger.info("Version: {}", LIB_VERSION.asString()); logger.info("Author: GroupMountain"); logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi"); }