git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@367 8ced0084-cf51-0410-be5f-012b33b47a6e

This commit is contained in:
XTra.KrazzY
2008-08-28 07:42:48 +00:00
parent e764723832
commit 8a33d6787b
2 changed files with 154 additions and 101 deletions

View File

@ -80,26 +80,35 @@ public:
//void Do(int &i);
//bool Do(std::string &s);
bool Do(void *ptr, int size);
bool DoArray(void *ptr, int size, int arrSize);
// Future
// bool DoCompressed(void *ptr, int size)
// Store maps to file. Very useful.
template<class T>
void Do(std::map<u32, T> &x) {
bool Do(std::map<u32, T> &x) {
return false;
}
// Store vectors.
void Do(std::vector<T> &x) {
template<class T>
bool Do(std::vector<T> &x) {
return false;
}
// Disable size checks to save size for variable size array storing
template<clsas T>
bool DoArray(T *x, int size, int arrSize) {
return DoArray((void *)x, size, arrSize);
}
// Handle everything else
void Do(T &x) {
Do((void *)&x, sizeof(x));
template<class T>
bool Do(T &x) {
return Do((void *)&x, sizeof(x));
}