OXYGENHUB
◆ main enhanced-x16-emulator / src / debug_ui / debug_ui_panels.cpp
392 B · C++ · last changed chore(): initial commit 25 days ago source blame history raw
1
// Commander X16 Emulator — ImGui debugger panel registry implementation.
2
#include "debug_ui_panels.h"
3
4
std::vector<DebugPanel> &
5
debug_ui_panels()
6
{
7
    static std::vector<DebugPanel> panels;
8
    return panels;
9
}
10
11
DebugPanelRegistration::DebugPanelRegistration(const char *name, void (*render)(bool *p_open), bool open)
12
{
13
    debug_ui_panels().push_back(DebugPanel{name, render, open});
14
}