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:
35
src/fileio/CPatcher.h
Normal file
35
src/fileio/CPatcher.h
Normal 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_ */
|
||||
Reference in New Issue
Block a user