physfs/lzma/CPP/7zip/Compress/LZMA/LZMARegister.cpp

20 lines
511 B
C++

// LZMARegister.cpp
#include "StdAfx.h"
#include "../../Common/RegisterCodec.h"
#include "LZMADecoder.h"
static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NLZMA::CDecoder); }
#ifndef EXTRACT_ONLY
#include "LZMAEncoder.h"
static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NLZMA::CEncoder); }
#else
#define CreateCodecOut 0
#endif
static CCodecInfo g_CodecInfo =
{ CreateCodec, CreateCodecOut, 0x030101, L"LZMA", 1, false };
REGISTER_CODEC(LZMA)