mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Don't include FileUtils.h in znc.h or Modules.h
Both these headers only really need CFile* which can be handled with a forward declaration. To make this possible, some methods are moved from the header file into the corresponding implementation file, because they used CFile or CDir static members. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -145,6 +145,13 @@ CModule::~CModule() {
|
||||
void CModule::SetUser(CUser* pUser) { m_pUser = pUser; }
|
||||
void CModule::SetClient(CClient* pClient) { m_pClient = pClient; }
|
||||
|
||||
const CString& CModule::GetSavePath() const {
|
||||
if (!CFile::Exists(m_sSavePath)) {
|
||||
CDir::MakeDir(m_sSavePath);
|
||||
}
|
||||
return m_sSavePath;
|
||||
}
|
||||
|
||||
bool CModule::LoadRegistry() {
|
||||
//CString sPrefix = (m_pUser) ? m_pUser->GetUserName() : ".global";
|
||||
return (m_mssRegistry.ReadFromDisk(GetSavePath() + "/.registry") == MCString::MCS_SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user