mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 14:20:42 -07:00
e1d1b39567
## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change Refactor patch manager. This one file had the UI logic, config save/load, parsing patches JSON, applying memory patches, everything all in one cpp file. Refactor and separate out the layers. ## Testing Sanity checked patch workflows.
22 lines
463 B
C++
22 lines
463 B
C++
#pragma once
|
|
|
|
#include "overlay/window.h"
|
|
#include "patcher/patch_manager.h"
|
|
|
|
namespace overlay::windows {
|
|
|
|
class PatchManager : public Window {
|
|
public:
|
|
explicit PatchManager(SpiceOverlay *overlay);
|
|
~PatchManager() override;
|
|
|
|
void build_content() override;
|
|
|
|
private:
|
|
static std::string patch_name_filter;
|
|
|
|
void update_sorted_patches();
|
|
void show_patch_tooltip(const patcher::PatchData& patch);
|
|
};
|
|
}
|