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:
36
src/fileio/CExeFile.h
Normal file
36
src/fileio/CExeFile.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* CExeFile.h
|
||||
*
|
||||
* Created on: 17.07.2009
|
||||
* Author: gerstrong
|
||||
*
|
||||
* This special class reads the whole exe-file
|
||||
* into the memory and decompresses if necessary
|
||||
*/
|
||||
|
||||
#ifndef CEXEFILE_H_
|
||||
#define CEXEFILE_H_
|
||||
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
|
||||
class CExeFile {
|
||||
public:
|
||||
CExeFile(int episode, char *datadirectory);
|
||||
virtual ~CExeFile();
|
||||
|
||||
bool readData();
|
||||
int getEXEVersion();
|
||||
unsigned char* getData();
|
||||
|
||||
private:
|
||||
int m_datasize;
|
||||
int m_episode;
|
||||
unsigned char *m_data;
|
||||
char *m_datadirectory;
|
||||
|
||||
int get_bit(int *p_bit_count, unsigned char *fin, int *posin);
|
||||
int unlzexe(unsigned char *fin, vector<unsigned char> *outbuffer);
|
||||
};
|
||||
|
||||
#endif /* CEXEFILE_H_ */
|
||||
Reference in New Issue
Block a user