fix registry setup (#1457)
This commit is contained in:
parent
0763022322
commit
acd6b875b5
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue