mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
feat: Added file information command line option and fullscreen view
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <hex.hpp>
|
||||
|
||||
#include <hex/helpers/literals.hpp>
|
||||
#include <hex/helpers/fs.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -27,4 +28,14 @@ namespace hex::magic {
|
||||
|
||||
bool isValidMIMEType(const std::string &mimeType);
|
||||
|
||||
struct FoundPattern {
|
||||
std::fs::path patternFilePath;
|
||||
std::string author;
|
||||
std::string description;
|
||||
std::optional<std::string> mimeType;
|
||||
std::optional<u64> magicOffset;
|
||||
};
|
||||
|
||||
std::vector<FoundPattern> findViablePatterns(prv::Provider *provider);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user