mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
build: Streamline definition on plugin features
This commit is contained in:
@@ -26,10 +26,10 @@ add_imhex_plugin(
|
||||
ui
|
||||
fonts
|
||||
FEATURES
|
||||
ZLIB
|
||||
BZIP2
|
||||
LIBLZMA
|
||||
ZSTD
|
||||
ZLIB "ZLib support"
|
||||
BZIP2 "Bzip2 support"
|
||||
LIBLZMA "LZMA support"
|
||||
ZSTD "zstd Support"
|
||||
)
|
||||
|
||||
find_package(ZSTD)
|
||||
|
||||
@@ -14,13 +14,6 @@ namespace hex::plugin::decompress {
|
||||
using namespace hex;
|
||||
using namespace hex::plugin::decompress;
|
||||
|
||||
IMHEX_DEFINE_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) },
|
||||
};
|
||||
|
||||
IMHEX_PLUGIN_SETUP("Decompressing", "WerWolv", "Support for decompressing data") {
|
||||
hex::log::debug("Using romfs: '{}'", romfs::name());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user