Source

pyGAP / game / engine / codec / factory.cpp

Full commit
#include "codec/base.h"
#include "codec/zip.h"
#include "codec/lzma.h"


namespace codec {


Base* create() {
#if defined COMPRESSION_ZLIB
    return new Zip();
#elif defined COMPRESSION_LZMA
    return new Lzma();
#else
    return 0; // NULL
#endif
}


} /* namespace codec */