CString ToppyFramework::MakeRelativePath(const CString& sPath) { CString result = m_sCurrentFolder; if (sPath.IsEmpty() || sPath == ".") return result; if (sPath == "..") result = "../"; if (sPath.Left(1) == "/") return MakeRootPath(sPath.Mid(1)); return MakePath(sPath); }
BaseTest::BaseTest() { MakeRootPath(s_datapath, L"TestData"); MakeRootPath(s_temppath, L"Temp"); }
bool ToppyFramework::Hdd_StartRecord(void ) { return m_TheState.StartRecord(MakeRootPath("DataFiles")); }