mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
impr: Display background scripts in about page
This commit is contained in:
@@ -8,6 +8,7 @@ namespace hex::script::loader {
|
||||
|
||||
struct Script {
|
||||
std::string name;
|
||||
bool background;
|
||||
std::function<void()> entryPoint;
|
||||
};
|
||||
|
||||
@@ -19,8 +20,8 @@ namespace hex::script::loader {
|
||||
virtual bool initialize() = 0;
|
||||
virtual bool loadAll() = 0;
|
||||
|
||||
void addScript(std::string name, std::function<void()> entryPoint) {
|
||||
m_scripts.emplace_back(std::move(name), std::move(entryPoint));
|
||||
void addScript(std::string name, bool background, std::function<void()> entryPoint) {
|
||||
m_scripts.emplace_back(std::move(name), background, std::move(entryPoint));
|
||||
}
|
||||
|
||||
const auto& getScripts() const {
|
||||
|
||||
Reference in New Issue
Block a user