mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
db2abf7669
-shrunk the list cache code.
36 lines
530 B
C++
36 lines
530 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 namespace std;
|
|
|
|
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 |