From acd6b875b5791a4b90fb194f04a39d269239bcb1 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Sep 07 2017 08:13:23 +0000 Subject: fix registry setup (#1457) --- diff --git a/toonz/sources/common/tapptools/tenv.cpp b/toonz/sources/common/tapptools/tenv.cpp index 90a981c..e4c008e 100644 --- a/toonz/sources/common/tapptools/tenv.cpp +++ b/toonz/sources/common/tapptools/tenv.cpp @@ -49,9 +49,7 @@ class EnvGlobals { // singleton TFilePath *m_dllRelativeDir; bool m_isPortable = false; - EnvGlobals() : m_stuffDir(0) { - setWorkingDirectory(); - } + EnvGlobals() : m_stuffDir(0) { setWorkingDirectory(); } public: ~EnvGlobals() { delete m_stuffDir; } @@ -188,7 +186,10 @@ public: } std::string getRootVarName() { return m_rootVarName; } - void setSystemVarPrefix(std::string prefix) { m_systemVarPrefix = prefix; } + void setSystemVarPrefix(std::string prefix) { + m_systemVarPrefix = prefix; + updateEnvFile(); + } std::string getSystemVarPrefix() { if (getIsPortable()) return ""; return m_systemVarPrefix;