fix: GDB provider not working nicely anymore

This commit is contained in:
WerWolv
2023-03-07 16:03:34 +01:00
parent f435191585
commit f661f4d1d6
4 changed files with 25 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ namespace hex::plugin::builtin {
auto provider = ImHexApi::Provider::get();
u8 byte = 0x00;
provider->readRaw(offset, &byte, sizeof(u8));
provider->read(offset, &byte, sizeof(u8), false);
const auto &patches = provider->getPatches();
if (patches.contains(offset) && patches.at(offset) != byte)

View File

@@ -4,7 +4,7 @@ namespace hex::plugin::builtin {
ViewProviderSettings::ViewProviderSettings() : hex::View("hex.builtin.view.provider_settings.name") {
EventManager::subscribe<EventProviderCreated>(this, [](hex::prv::Provider *provider) {
if (provider->hasLoadInterface())
if (provider->hasLoadInterface() && !provider->shouldSkipLoadInterface())
EventManager::post<RequestOpenPopup>(View::toWindowName("hex.builtin.view.provider_settings.load_popup"));
});
}