diff --git a/src/Entry.cpp b/src/Entry.cpp index e9a63d8..bbf8115 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -59,8 +59,7 @@ void Entry::loadI18n() { void Entry::loadResourcePack() { gmlib::tools::VanillaFix::setFixI18nEnabled(); - std::string resourcePath = "./plugins/DeathMessages/resource/"; - auto resource = gmlib::i18n::ResourceI18n(resourcePath, MOD_NAME, 0, 8, 0); + auto resource = gmlib::i18n::ResourceI18n(getSelf().getModDir() / u8"resource", MOD_NAME, 0, 8, 0); resource.addLanguage("en_US", en_US); resource.addLanguage("zh_CN", zh_CN); } diff --git a/xmake.lua b/xmake.lua index cef162a..c950500 100644 --- a/xmake.lua +++ b/xmake.lua @@ -66,6 +66,7 @@ target("DeathMessages") -- Change this to your mod name. set_exceptions("none") -- To avoid conflicts with /EHa set_kind("shared") set_languages("cxx23") + set_symbols("debug") after_build(function (target) local mod_packer = import("scripts.after_build")