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

36
src/fileio/CExeFile.h Normal file
View 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_ */