2023-12-24 13:14:51 +01:00
|
|
|
#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;
|
|
|
|
|
2024-05-08 22:30:53 +02:00
|
|
|
IMHEX_DEFINE_PLUGIN_FEATURES() {
|
2023-12-31 11:39:24 +01:00
|
|
|
{ "bzip2 Support", IMHEX_FEATURE_ENABLED(BZIP2) },
|
|
|
|
{ "zlib Support", IMHEX_FEATURE_ENABLED(ZLIB) },
|
|
|
|
{ "LZMA Support", IMHEX_FEATURE_ENABLED(LIBLZMA) },
|
|
|
|
{ "zstd Support", IMHEX_FEATURE_ENABLED(ZSTD) },
|
2024-01-13 00:34:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
IMHEX_PLUGIN_SETUP("Decompressing", "WerWolv", "Support for decompressing data") {
|
|
|
|
hex::log::debug("Using romfs: '{}'", romfs::name());
|
|
|
|
|
|
|
|
registerPatternLanguageFunctions();
|
|
|
|
}
|