/*
 * 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<char*> m_TextList;

};

#endif /* CPATCHER_H_ */
