mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-14 00:08:50 -06:00
impr: Make --pl subcommand automatically register ImHex's include dirs
This commit is contained in:
@@ -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