mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 14:07:58 +03:00
32 lines
642 B
C++
32 lines
642 B
C++
#ifndef _MEMORYCARD_H_
|
|
#define _MEMORYCARD_H_
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
#include <boost/ptr_container/ptr_vector.hpp>
|
|
#include "../saves/Save.h"
|
|
|
|
class CMemoryCard
|
|
{
|
|
public:
|
|
typedef boost::ptr_vector<CSave> SaveList;
|
|
typedef SaveList::iterator SaveIterator;
|
|
|
|
CMemoryCard(boost::filesystem::path&);
|
|
~CMemoryCard();
|
|
|
|
size_t GetSaveCount() const;
|
|
const CSave* GetSaveByIndex(size_t) const;
|
|
|
|
const char* GetBasePath();
|
|
void RefreshContents();
|
|
|
|
private:
|
|
|
|
void ScanSaves();
|
|
|
|
SaveList m_Saves;
|
|
boost::filesystem::path m_BasePath;
|
|
|
|
};
|
|
|
|
#endif
|