diff --git a/SDK-GMLIB b/SDK-GMLIB index cecc827..695c14b 160000 --- a/SDK-GMLIB +++ b/SDK-GMLIB @@ -1 +1 @@ -Subproject commit cecc827900f147de4c7aed916aeb4bca31b0682c +Subproject commit 695c14b6307e5dd095699348bd9ce5ba78cb4f17 diff --git a/manifest.json b/manifest.json index c89d7e4..30f9af8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "${pluginName}", "entry": "${pluginFile}", - "version": "0.11.0", + "version": "0.12.0", "author": "GroupMountain", "type": "native", "dependencies": [ diff --git a/src/CompatibilityApi.cpp b/src/CompatibilityApi.cpp index 19d5854..41ee6fd 100644 --- a/src/CompatibilityApi.cpp +++ b/src/CompatibilityApi.cpp @@ -168,16 +168,16 @@ void Export_Compatibility_API() { RemoteCall::exportAs( "GMLIB_API", "resourcePackTranslate", - [](std::string key, std::vector params) -> std::string { return I18n::get(key, params); } + [](std::string key, std::vector params) -> std::string { return I18nAPI::get(key, params); } ); RemoteCall::exportAs("GMLIB_API", "chooseResourcePackI18nLanguage", [](std::string code) -> void { if (GMLIB_Level::getInstance()) { - I18n::chooseLanguage(code); + I18nAPI::chooseLanguage(code); } }); RemoteCall::exportAs("GMLIB_API", "getResourcePackI18nLanguage", []() -> std::string { - if (GMLIB_Level::getInstance()) { - return I18n::getCurrentLanguage()->getFullLanguageCode(); + if (auto result = I18nAPI::getCurrentLanguageCode()) { + return result.value(); } return "unknown"; }); diff --git a/src/Global.h b/src/Global.h index e1a681d..6046573 100644 --- a/src/Global.h +++ b/src/Global.h @@ -4,7 +4,7 @@ #include #define PLUGIN_NAME "GMLIB-LRCA" -#define LIB_VERSION GMLIB::Version(0, 11, 0) +#define LIB_VERSION GMLIB::Version(0, 12, 0) extern ll::Logger logger; diff --git a/tooth.json b/tooth.json index 5f17be7..88acd9f 100644 --- a/tooth.json +++ b/tooth.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi", - "version": "0.11.0", + "version": "0.12.0", "info": { "name": "GMLIB-LegacyRemoteCallApi", "description": "Legacy RemoteCall API for GMLIB", @@ -14,9 +14,9 @@ "library" ] }, - "asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.11.0/GMLIB-LegacyRemoteCallApi-windows-x64.zip", + "asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.12.0/GMLIB-LegacyRemoteCallApi-windows-x64.zip", "dependencies": { - "github.com/GroupMountain/GMLIB": ">=0.10.0" + "github.com/GroupMountain/GMLIB": ">=0.12.0" }, "files": { "place": [