git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@153 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
36 lines
569 B
C++
36 lines
569 B
C++
/*
|
|
* CPatcher.h
|
|
*
|
|
* Created on: 19.07.2009
|
|
* Author: gerstrong
|
|
*/
|
|
|
|
#ifndef CPATCHER_H_
|
|
#define CPATCHER_H_
|
|
|
|
#include <list>
|
|
#include <string>
|
|
|
|
class CPatcher {
|
|
public:
|
|
CPatcher(int episode, int version,unsigned char *data, const std::string& datadir);
|
|
virtual ~CPatcher();
|
|
|
|
void patchMemory();
|
|
void patchMemfromFile(const std::string& patch_file_name, int offset);
|
|
|
|
private:
|
|
|
|
bool loadPatchfile();
|
|
|
|
int m_episode;
|
|
int m_version;
|
|
unsigned char *m_data;
|
|
std::string m_datadirectory;
|
|
|
|
std::list<std::string> m_TextList;
|
|
|
|
};
|
|
|
|
#endif /* CPATCHER_H_ */
|