mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-24 20:24:13 +08:00
fix
This commit is contained in:
parent
2c613fd060
commit
81feb86bd0
@ -175,7 +175,7 @@ std::wstring pluginitem::wpath()
|
||||
{
|
||||
auto wp = StringToWideString(path);
|
||||
if (isref)
|
||||
return std::filesystem::current_path() / wp;
|
||||
return std::filesystem::absolute(wp);
|
||||
else
|
||||
return wp;
|
||||
}
|
||||
@ -272,7 +272,7 @@ void Pluginmanager::remove(const std::wstring &wss)
|
||||
auto it = std::remove_if(plgs.begin(), plgs.end(), [&](auto &t)
|
||||
{
|
||||
std::string p=t["path"];
|
||||
return p==s; });
|
||||
return std::filesystem::absolute(p)==std::filesystem::absolute(s); });
|
||||
plgs.erase(it, plgs.end());
|
||||
OnNewSentenceS.erase(wss);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user