Exemplo n.º 1
0
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;
    }
}
Exemplo n.º 2
0
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;
	}
}