const String& OTPaths::ScriptsFolder() { if (s_strScriptsFolder.Exists()) return s_strScriptsFolder; // got it, lets return it. // load it from config (if we already have it set in the config). if (LoadSetScriptsFolder()) return s_strScriptsFolder; else { OT_FAIL; } }
const OTString & OTPaths::ScriptsFolder() { if (m_strScriptsFolder.Exists()) return m_strScriptsFolder; //got it, lets return it. // load it from config (if we already have it set in the config). if(LoadSetScriptsFolder()) return m_strScriptsFolder; else { OT_ASSERT(false); return m_strScriptsFolder; } }