0ad/source/tools/atlas/AtlasUI/CustomControls/FileHistory/FileHistory.cpp
Ykkrosh aa118403bb Terrain: CalcFromPosition, to convert world-space to tile-space.
ScEd: Compilation fixes.
Atlas: Screen-space to world-space conversion when editing terrain.
Wireframe option. Minor wxWidgets 2.6.1 fixes. AoE3Ed.

This was SVN commit r2698.
2005-09-12 20:04:26 +00:00

26 lines
545 B
C++

#include "stdafx.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);
}