feat: resume inventory

This commit is contained in:
Tsubasa6848
2024-02-28 05:31:31 +08:00
Unverified
parent 37e56772e0
commit b6541ba6ac
3 changed files with 59 additions and 1 deletions
+6
View File
@@ -15,6 +15,12 @@ void initPlugin() {
Language->updateOrCreateLanguage("zh_CN", defaultLanguage_zh_CN);
Language->loadAllLanguages();
Language->chooseLanguage(languageCode);
if (!std::filesystem::exists("./plugins/InventoryCheck/data/")) {
std::filesystem::create_directories("./plugins/InventoryCheck/data/");
}
if (!std::filesystem::exists("./plugins/InventoryCheck/save/")) {
std::filesystem::create_directories("./plugins/InventoryCheck/save/");
}
}
std::string tr(std::string key, std::vector<std::string> data) { return Language->translate(key, data); }