forked from davenonymous/SMbz2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBZThread.h
28 lines (26 loc) · 782 Bytes
/
BZThread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <IThreader.h>
#include <IExtensionSys.h>
#include <IForwardSys.h>
#include <sm_globals.h>
#include "extension.h"
#define BZ_IO_ERROR_INPUT (-101)
#define BZ_IO_ERROR_OUTPUT (-102)
class BZThread : public IThread
{
private:
int iCompressionLevel;
bool bCompress;
char sInputPath[PLATFORM_MAX_PATH];
char sInputFile[PLATFORM_MAX_PATH];
char sOutputPath[PLATFORM_MAX_PATH];
char sOutputFile[PLATFORM_MAX_PATH];
IPluginContext *g_pCtx;
funcid_t myfunc;
int32_t anyData;
public: //IThread
void RunThread(IThreadHandle *pThread);
void OnTerminate(IThreadHandle *pThread, bool cancel);
public:
BZThread(bool compress, int iCompLevel, char inputPath[], char inputFile[], char outputPath[], char outputFile[], IPluginContext *pCtx, funcid_t, int32_t);
~BZThread();
};