Skip to content

Commit

Permalink
- Fix an issue where plugin alias names could contain non-ASCII chara…
Browse files Browse the repository at this point in the history
…cters.

- Fix the issue where the Unpacker Plugin of ShowSettingsDialog is sometimes automatically generated.
  • Loading branch information
sdottaka committed Apr 29, 2024
1 parent 131a7e2 commit ea9bc8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/InternalPlugins.cpp
Expand Up @@ -697,7 +697,7 @@ Info CreateAliasPluginExample(PluginInfo* plugin, const String& event, const Str
info.m_event = event;
for (tchar_t c : pipeline)
{
if (tc::istalnum(c) || c == '_')
if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_')
info.m_name += c;
}
info.m_name += _T("Alias");
Expand Down Expand Up @@ -881,7 +881,7 @@ struct Loader
int validFuncs = plugin::GetMethodsFromScript(plugin->m_lpDispatch, namesArray, idArray);
for (int i = 0; i < validFuncs; ++i)
{
if (namesArray[i] == L"PluginOnEvent")
if (namesArray[i] == L"PluginOnEvent" || namesArray[i] == L"ShowSettingsDialog")
continue;
if (plugins.find(L"FILE_PACK_UNPACK") == plugins.end())
plugins[L"FILE_PACK_UNPACK"].reset(new PluginArray);
Expand Down

0 comments on commit ea9bc8c

Please sign in to comment.