WiiFlow_Lite/source/list/cache.hpp
Fledge68 12d21fa0a7 - now compiled with devkitppc r39-2 (GCC 11) and libogc 2.3.1-1
- updated libwolfssl
- many thanks to blackb0x
2021-09-06 14:16:45 -05:00

37 lines
548 B
C++

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