0ad/source/tools/atlas/AtlasUI/CustomControls/FileHistory/FileHistory.cpp
Ykkrosh 914e5f7c2f Rename stdafx.h to precompiled.h
This was SVN commit r5146.
2007-06-05 18:35:05 +00:00

26 lines
524 B
C++

#include "precompiled.h"
#include "FileHistory.h"
#include "wx/confbase.h"
FileHistory::FileHistory(const wxString& configSubdir)
: wxFileHistory(9), m_configSubdir(configSubdir)
{
}
void FileHistory::Load(wxConfigBase& config)
{
wxString old = config.GetPath();
config.SetPath(m_configSubdir);
wxFileHistory::Load(config);
config.SetPath(old);
}
void FileHistory::Save(wxConfigBase& config)
{
wxString old = config.GetPath();
config.SetPath(m_configSubdir);
wxFileHistory::Save(config);
config.SetPath(old);
}