WiiFlow_Lite/source/list/cache.hpp

37 lines
548 B
C++
Raw Normal View History

2012-01-21 21:57:41 +01:00
#ifndef CCACHE
#define CCACHE
#include <sys/types.h>
#include <ogcsys.h>
#include <fstream>
#include <vector>
#include "loader/disc.h"
2012-01-21 21:57:41 +01:00
//#include "gecko.hpp"
using std::string;
using std::vector;
2012-01-21 21:57:41 +01:00
const char io[2][3] = {
2012-01-21 21:57:41 +01:00
"wb",
"rb",
};
enum CMode
{
SAVE,
LOAD,
};
class CCache
{
public:
CCache(vector<dir_discHdr> &list, string path, CMode mode);
2012-01-21 21:57:41 +01:00
~CCache();
private:
2012-08-16 16:09:02 +02:00
void SaveAll(vector<dir_discHdr> list);
void LoadAll(vector<dir_discHdr> &list);
2012-01-21 21:57:41 +01:00
FILE *cache;
string filename;
};
#endif