Skip to content

Commit efad895

Browse files
committed
fix: try fix chinese path related problems
1 parent cd9e468 commit efad895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacy/main/PluginManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ using ll::string_utils::str2wstr;
4848
bool PluginManager::loadPlugin(const std::string& fileOrDirPath, bool isHotLoad, bool mustBeCurrentModule) {
4949
if (fileOrDirPath == LLSE_DEBUG_ENGINE_NAME) return true;
5050

51-
if (!std::filesystem::exists(fileOrDirPath)) {
51+
if (!std::filesystem::exists(ll::string_utils::str2u8str(fileOrDirPath))) {
5252
lse::getSelfPluginInstance().getLogger().error("Plugin not found! Check the path you input again.");
5353
return false;
5454
}

0 commit comments

Comments
 (0)