Changed Lua plugins to only execute files ending in .lua (#3831)
This commit is contained in:
parent
d838ef7ba4
commit
10a3bd9d12
@ -113,7 +113,8 @@ bool cPluginLua::Load(void)
|
||||
bool HasInfoLua = false;
|
||||
for (AStringVector::const_iterator itr = Files.begin(), end = Files.end(); itr != end; ++itr)
|
||||
{
|
||||
if (itr->rfind(".lua") != AString::npos)
|
||||
size_t ExtensionStart = itr->find_last_of('.');
|
||||
if ((ExtensionStart != std::string::npos) && (itr->substr(ExtensionStart) == ".lua"))
|
||||
{
|
||||
if (*itr == "Info.lua")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user