mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-05-05 11:30:21 -05:00
sys: Added support for providers with unreadable regions
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "content/providers/gdb_provider.hpp"
|
||||
#include "content/providers/file_provider.hpp"
|
||||
#include "content/providers/null_provider.hpp"
|
||||
#include "content/providers/disk_provider.hpp"
|
||||
|
||||
#include <hex/api/project_file_manager.hpp>
|
||||
@@ -13,8 +14,9 @@ namespace hex::plugin::builtin {
|
||||
void registerProviders() {
|
||||
|
||||
ContentRegistry::Provider::add<prv::FileProvider>(false);
|
||||
ContentRegistry::Provider::add<prv::GDBProvider>();
|
||||
ContentRegistry::Provider::add<prv::NullProvider>(false);
|
||||
ContentRegistry::Provider::add<prv::DiskProvider>();
|
||||
ContentRegistry::Provider::add<prv::GDBProvider>();
|
||||
|
||||
ProjectFile::registerHandler({
|
||||
.basePath = "providers",
|
||||
@@ -53,9 +55,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
tar.write(basePath / "providers.json",
|
||||
nlohmann::json({
|
||||
{"providers", providerIds}
|
||||
}).dump(4)
|
||||
nlohmann::json({ {"providers", providerIds } }).dump(4)
|
||||
);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user