28 lines
751 B
C++
28 lines
751 B
C++
#include <hex/plugin.hpp>
|
|
|
|
#include <hex/api/content_registry.hpp>
|
|
#include <hex/helpers/logger.hpp>
|
|
|
|
#include <romfs/romfs.hpp>
|
|
|
|
namespace hex::plugin::decompress {
|
|
|
|
void registerPatternLanguageFunctions();
|
|
|
|
}
|
|
|
|
using namespace hex;
|
|
using namespace hex::plugin::decompress;
|
|
|
|
IMHEX_PLUGIN_SETUP("Decompressing", "WerWolv", "Support for decompressing data") {
|
|
hex::log::debug("Using romfs: '{}'", romfs::name());
|
|
|
|
registerPatternLanguageFunctions();
|
|
}
|
|
|
|
IMHEX_PLUGIN_FEATURES() {
|
|
{ "bzip2 Support", IMHEX_FEATURE_ENABLED(BZIP2) },
|
|
{ "zlib Support", IMHEX_FEATURE_ENABLED(ZLIB) },
|
|
{ "LZMA Support", IMHEX_FEATURE_ENABLED(LIBLZMA) },
|
|
{ "zstd Support", IMHEX_FEATURE_ENABLED(ZSTD) },
|
|
}; |