feat: Look for custom inspector entries in imhex/scripts/inspectors

This commit is contained in:
WerWolv
2022-10-02 14:18:40 +02:00
parent 0fd7461266
commit 6a07a2f85d
5 changed files with 64 additions and 60 deletions

View File

@@ -209,6 +209,8 @@ namespace hex::fs {
std::vector<std::fs::path> result;
switch (path) {
case ImHexPath::END:
return { };
case ImHexPath::Constants:
result = appendPath(getDataPaths(), "constants");
break;
@@ -245,6 +247,12 @@ namespace hex::fs {
case ImHexPath::Recent:
result = appendPath(getConfigPaths(), "recent");
break;
case ImHexPath::Scripts:
result = appendPath(getDataPaths(), "scripts");
break;
case ImHexPath::Inspectors:
result = appendPath(getDefaultPaths(ImHexPath::Scripts), "inspectors");
break;
}
if (!listNonExisting) {