mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Make --pl subcommand automatically register ImHex's include dirs
This commit is contained in:
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: f82f5136ae...54260bd8ae
@@ -263,6 +263,10 @@ namespace hex::plugin::builtin {
|
||||
std::vector<std::string> processedArgs = args;
|
||||
if (processedArgs.empty())
|
||||
processedArgs.emplace_back("--help");
|
||||
else {
|
||||
for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::PatternsInclude))
|
||||
processedArgs.emplace_back(hex::format("--includes={}", wolv::util::toUTF8String(path)));
|
||||
}
|
||||
|
||||
std::exit(pl::cli::executeCommandLineInterface(processedArgs));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user