Example #1
0
const OTString & OTPaths::GlobalConfigFile()
{
	if (m_strGlobalConfigFile.Exists()) return m_strGlobalConfigFile;  //got it, lets return it.

	OTString strGlobalConfigFile("");

	if(!AppendFile(strGlobalConfigFile,AppDataFolder(),OT_INIT_CONFIG_FILENAME)) OT_ASSERT(false);

	m_strGlobalConfigFile = strGlobalConfigFile;

	return m_strGlobalConfigFile;
}
Example #2
0
const String& OTPaths::GlobalConfigFile()
{
    if (s_strGlobalConfigFile.Exists())
        return s_strGlobalConfigFile; // got it, lets return it.

    String strGlobalConfigFile("");

    if (!AppendFile(strGlobalConfigFile, AppDataFolder(),
                    OT_INIT_CONFIG_FILENAME))
        OT_FAIL;

    s_strGlobalConfigFile = strGlobalConfigFile;

    return s_strGlobalConfigFile;
}