mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-06-12 21:45:37 -04:00
Add support for config schema.
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
#include "ui_elements.h"
|
||||
#include "librecomp/config.hpp"
|
||||
|
||||
struct RecompElementConfig {
|
||||
struct RecompCustomElement {
|
||||
Rml::String tag;
|
||||
std::unique_ptr<Rml::ElementInstancer> instancer;
|
||||
};
|
||||
|
||||
#define CUSTOM_ELEMENT(s, e) { s, std::make_unique< Rml::ElementInstancerGeneric< e > >() }
|
||||
|
||||
static RecompElementConfig custom_elements[] = {
|
||||
static RecompCustomElement custom_elements[] = {
|
||||
CUSTOM_ELEMENT("recomp-mod-menu", recompui::ElementModMenu),
|
||||
CUSTOM_ELEMENT("recomp-config-sub-menu", recompui::ElementConfigSubMenu),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user