From 43223a4ec0bf8ac6effbb566754ebca6a0c9ac79 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Sat, 20 Jun 2020 23:37:53 -0500 Subject: [PATCH] Fix rename/emoji scripts not working with INI --- src/subexport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subexport.cpp b/src/subexport.cpp index e29ebaa..e66f42d 100644 --- a/src/subexport.cpp +++ b/src/subexport.cpp @@ -502,7 +502,7 @@ std::string nodeRename(const nodeInfo &node, const string_array &rename_array) { if(startsWith(x, "!!script:")) { - std::string script = x.substr(7); + std::string script = x.substr(9); if(startsWith(script, "path:")) script = fileGet(script.substr(5), true); if(ctx) @@ -563,7 +563,7 @@ std::string addEmoji(const nodeInfo &node, const string_array &emoji_array) { if(startsWith(x, "!!script:")) { - std::string script = x.substr(7); + std::string script = x.substr(9); if(startsWith(script, "path:")) script = fileGet(script.substr(5), true); if(ctx)