コード例 #1
0
ファイル: OTPaths.cpp プロジェクト: yamamushi/opentxs
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;
    }
}
コード例 #2
0
ファイル: OTPaths.cpp プロジェクト: Sollo/Open-Transactions
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;
	}
}