applied changes from 0.3pre6 (patch from rev40 to rev49)

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@79 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-21 23:33:30 +00:00
parent 59b5a31f70
commit 68a5a6a245
62 changed files with 4916 additions and 2743 deletions

35
src/fileio/CPatcher.h Normal file
View File

@@ -0,0 +1,35 @@
/*
* CPatcher.h
*
* Created on: 19.07.2009
* Author: gerstrong
*/
#ifndef CPATCHER_H_
#define CPATCHER_H_
#include <list>
using namespace std;
class CPatcher {
public:
CPatcher(int episode, int version,unsigned char *data, char *datadir);
virtual ~CPatcher();
void patchMemory();
void patchMemfromFile(const char *patch_file_name, int offset);
private:
bool loadPatchfile();
int m_episode;
int m_version;
unsigned char *m_data;
char m_datadirectory[256];
list<char*> m_TextList;
};
#endif /* CPATCHER_H_ */