Skip to content

Commit

Permalink
Fix #510
Browse files Browse the repository at this point in the history
Fix warning C4715
  • Loading branch information
Jasonzyt committed Jul 12, 2022
1 parent df83691 commit 4c774e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LiteLoader/Main/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,15 @@ LL::Plugin* LL::PluginManager::getPlugin(std::string name, bool includeScriptPlu
auto res = GetPlugin_Raw(name, includeScriptPlugin);
if (res)
return res;
/* issue #510
try
{
name = UTF82String(filesystem::path(str2wstr(name)).filename().replace_extension("").u8string());
name = UTF82String(filesystem::path(str2wstr(name)).stem().u8string());
return GetPlugin_Raw(name, includeScriptPlugin);
}
catch(...)
{ }
*/
return nullptr;
}

Expand Down
1 change: 1 addition & 0 deletions ScriptEngine/API/APIHelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ Local<Value> BigInteger_Helper(fifo_json& i)
}
return Number::newNumber(i.get<int64_t>());
}
return Local<Value>();
}

void JsonToValue_Helper(Local<Array> &res, fifo_json &j);
Expand Down

0 comments on commit 4c774e5

Please sign in to comment.