2020-11-29 02:06:41 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
2021-01-13 17:28:27 +01:00
|
|
|
#include <imgui.h>
|
2022-02-01 18:09:40 +01:00
|
|
|
#include <hex/ui/view.hpp>
|
2020-11-29 02:06:41 +01:00
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
|
2021-12-07 22:47:41 +01:00
|
|
|
namespace hex::plugin::builtin {
|
2020-11-29 02:06:41 +01:00
|
|
|
|
|
|
|
class ViewPatches : public View {
|
|
|
|
public:
|
2020-12-27 15:39:06 +01:00
|
|
|
explicit ViewPatches();
|
2022-09-28 15:01:43 +02:00
|
|
|
~ViewPatches() override = default;
|
2020-11-29 02:06:41 +01:00
|
|
|
|
2020-12-22 18:10:01 +01:00
|
|
|
void drawContent() override;
|
2023-07-24 23:24:31 +02:00
|
|
|
void drawAlwaysVisible() override;
|
2020-11-29 02:06:41 +01:00
|
|
|
|
|
|
|
private:
|
2022-03-04 20:52:39 +01:00
|
|
|
u64 m_selectedPatch = 0x00;
|
2023-07-24 23:24:31 +02:00
|
|
|
PerProvider<u32> m_numPatches;
|
2020-11-29 02:06:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|