mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Make menu dumper consider empty tokens require parenthesis
This commit is contained in:
@ -110,6 +110,9 @@ std::vector<std::string> AbstractMenuDumper::CreateScriptTokenList(const char* s
|
||||
|
||||
bool AbstractMenuDumper::DoesTokenNeedQuotationMarks(const std::string& token)
|
||||
{
|
||||
if (token.empty())
|
||||
return true;
|
||||
|
||||
const auto hasAlNumCharacter = std::any_of(token.begin(), token.end(), [](const char& c)
|
||||
{
|
||||
return isalnum(c);
|
||||
|
Reference in New Issue
Block a user