2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2019-09-23 00:24:10 -07:00
|
|
|
|
2024-09-20 17:43:39 -07:00
|
|
|
#include <cstdio>
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <string_view>
|
|
|
|
|
|
2020-09-12 10:55:46 -07:00
|
|
|
#include <glass/Context.h>
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
#include <glass/Storage.h>
|
2024-07-15 19:28:05 -05:00
|
|
|
#include <glass/hardware/Pneumatic.h>
|
2020-09-12 10:55:46 -07:00
|
|
|
#include <glass/other/Plot.h>
|
2020-09-02 20:51:43 -07:00
|
|
|
#include <hal/Extensions.h>
|
2019-09-23 00:24:10 -07:00
|
|
|
#include <hal/Main.h>
|
2020-09-12 10:55:46 -07:00
|
|
|
#include <imgui.h>
|
|
|
|
|
#include <wpigui.h>
|
2019-09-23 00:24:10 -07:00
|
|
|
|
2020-09-12 10:55:46 -07:00
|
|
|
#include "AccelerometerSimGui.h"
|
2019-11-17 16:35:45 -08:00
|
|
|
#include "AddressableLEDGui.h"
|
2020-09-12 10:55:46 -07:00
|
|
|
#include "AnalogGyroSimGui.h"
|
|
|
|
|
#include "AnalogInputSimGui.h"
|
|
|
|
|
#include "AnalogOutputSimGui.h"
|
|
|
|
|
#include "DIOSimGui.h"
|
2019-09-23 00:24:10 -07:00
|
|
|
#include "DriverStationGui.h"
|
2020-09-12 10:55:46 -07:00
|
|
|
#include "EncoderSimGui.h"
|
2019-09-23 00:24:10 -07:00
|
|
|
#include "HALSimGui.h"
|
2022-02-19 23:40:25 -05:00
|
|
|
#include "HALSimGuiExt.h"
|
2020-09-12 10:55:46 -07:00
|
|
|
#include "NetworkTablesSimGui.h"
|
|
|
|
|
#include "PCMSimGui.h"
|
2024-07-15 19:28:05 -05:00
|
|
|
#include "PHSimGui.h"
|
2020-09-12 10:55:46 -07:00
|
|
|
#include "PWMSimGui.h"
|
2021-08-04 20:31:17 -07:00
|
|
|
#include "PowerDistributionSimGui.h"
|
2020-09-12 10:55:46 -07:00
|
|
|
#include "RelaySimGui.h"
|
|
|
|
|
#include "RoboRioSimGui.h"
|
2019-09-23 00:24:10 -07:00
|
|
|
#include "SimDeviceGui.h"
|
2019-11-10 20:55:42 -08:00
|
|
|
#include "TimingGui.h"
|
2019-09-23 00:24:10 -07:00
|
|
|
|
|
|
|
|
using namespace halsimgui;
|
|
|
|
|
|
2020-09-12 10:55:46 -07:00
|
|
|
namespace gui = wpi::gui;
|
|
|
|
|
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
static std::unique_ptr<glass::PlotProvider> gPlotProvider;
|
2020-09-12 10:55:46 -07:00
|
|
|
|
2019-09-23 00:24:10 -07:00
|
|
|
extern "C" {
|
|
|
|
|
#if defined(WIN32) || defined(_WIN32)
|
|
|
|
|
__declspec(dllexport)
|
|
|
|
|
#endif
|
|
|
|
|
int HALSIM_InitExtension(void) {
|
2021-06-06 16:13:58 -07:00
|
|
|
std::puts("Simulator GUI Initializing.");
|
2020-09-12 10:55:46 -07:00
|
|
|
|
|
|
|
|
gui::CreateContext();
|
|
|
|
|
glass::CreateContext();
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
|
|
|
|
|
glass::SetStorageName("simgui");
|
|
|
|
|
|
2024-03-10 20:29:20 -07:00
|
|
|
gui::AddInit([] { ImGui::GetIO().ConfigDockingWithShift = true; });
|
|
|
|
|
|
2022-02-19 23:40:25 -05:00
|
|
|
HAL_RegisterExtension(HALSIMGUI_EXT_ADDGUIINIT,
|
|
|
|
|
reinterpret_cast<void*>((AddGuiInitFn)&AddGuiInit));
|
|
|
|
|
HAL_RegisterExtension(
|
|
|
|
|
HALSIMGUI_EXT_ADDGUILATEEXECUTE,
|
|
|
|
|
reinterpret_cast<void*>((AddGuiLateExecuteFn)&AddGuiLateExecute));
|
|
|
|
|
HAL_RegisterExtension(
|
|
|
|
|
HALSIMGUI_EXT_ADDGUIEARLYEXECUTE,
|
|
|
|
|
reinterpret_cast<void*>((AddGuiEarlyExecuteFn)&AddGuiEarlyExecute));
|
|
|
|
|
HAL_RegisterExtension(HALSIMGUI_EXT_GUIEXIT,
|
|
|
|
|
reinterpret_cast<void*>((GuiExitFn)&GuiExit));
|
|
|
|
|
|
2020-08-26 00:35:44 -07:00
|
|
|
HALSimGui::GlobalInit();
|
2020-09-12 10:55:46 -07:00
|
|
|
DriverStationGui::GlobalInit();
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
gPlotProvider = std::make_unique<glass::PlotProvider>(
|
|
|
|
|
glass::GetStorageRoot().GetChild("Plot"));
|
|
|
|
|
gPlotProvider->GlobalInit();
|
2019-09-23 00:24:10 -07:00
|
|
|
|
2020-09-12 10:55:46 -07:00
|
|
|
// These need to initialize first
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
EncoderSimGui::Initialize();
|
|
|
|
|
SimDeviceGui::Initialize();
|
|
|
|
|
|
|
|
|
|
AccelerometerSimGui::Initialize();
|
|
|
|
|
AddressableLEDGui::Initialize();
|
|
|
|
|
AnalogGyroSimGui::Initialize();
|
|
|
|
|
AnalogInputSimGui::Initialize();
|
|
|
|
|
AnalogOutputSimGui::Initialize();
|
|
|
|
|
DIOSimGui::Initialize();
|
|
|
|
|
NetworkTablesSimGui::Initialize();
|
|
|
|
|
PCMSimGui::Initialize();
|
|
|
|
|
PowerDistributionSimGui::Initialize();
|
|
|
|
|
PWMSimGui::Initialize();
|
|
|
|
|
RelaySimGui::Initialize();
|
2024-07-15 19:28:05 -05:00
|
|
|
PHSimGui::Initialize();
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
RoboRioSimGui::Initialize();
|
|
|
|
|
TimingGui::Initialize();
|
2020-09-12 10:55:46 -07:00
|
|
|
|
2024-07-15 19:28:05 -05:00
|
|
|
HALSimGui::halProvider->RegisterModel(
|
|
|
|
|
"AllPneumaticControls",
|
|
|
|
|
[] {
|
|
|
|
|
return PCMSimGui::PCMsAnyInitialized() || PHSimGui::PHsAnyInitialized();
|
|
|
|
|
},
|
|
|
|
|
[] {
|
|
|
|
|
return std::make_unique<glass::AllPneumaticControlsModel>(
|
|
|
|
|
PCMSimGui::GetPCMsModel(), PHSimGui::GetPHsModel());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
HALSimGui::halProvider->RegisterView(
|
|
|
|
|
"Solenoids", "AllPneumaticControls",
|
|
|
|
|
[](glass::Model* model) {
|
|
|
|
|
auto pneumaticModel =
|
|
|
|
|
static_cast<glass::AllPneumaticControlsModel*>(model);
|
|
|
|
|
return PCMSimGui::PCMsAnySolenoids(pneumaticModel->pcms.get()) ||
|
|
|
|
|
PHSimGui::PHsAnySolenoids(pneumaticModel->phs.get());
|
|
|
|
|
},
|
|
|
|
|
[](glass::Window* win, glass::Model* model) {
|
|
|
|
|
win->SetFlags(ImGuiWindowFlags_AlwaysAutoResize);
|
|
|
|
|
win->SetDefaultPos(290, 20);
|
|
|
|
|
return glass::MakeFunctionView([=] {
|
|
|
|
|
auto pneumaticModel =
|
|
|
|
|
static_cast<glass::AllPneumaticControlsModel*>(model);
|
|
|
|
|
glass::DisplayPneumaticControlsSolenoids(
|
|
|
|
|
pneumaticModel->pcms.get(),
|
|
|
|
|
HALSimGui::halProvider->AreOutputsEnabled());
|
|
|
|
|
glass::DisplayPneumaticControlsSolenoids(
|
|
|
|
|
pneumaticModel->phs.get(),
|
|
|
|
|
HALSimGui::halProvider->AreOutputsEnabled());
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
2020-09-12 10:55:46 -07:00
|
|
|
HALSimGui::mainMenu.AddMainMenu([] {
|
|
|
|
|
if (ImGui::BeginMenu("Hardware")) {
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
HALSimGui::halProvider->DisplayMenu();
|
2020-09-12 10:55:46 -07:00
|
|
|
ImGui::EndMenu();
|
|
|
|
|
}
|
|
|
|
|
if (ImGui::BeginMenu("NetworkTables")) {
|
|
|
|
|
NetworkTablesSimGui::DisplayMenu();
|
|
|
|
|
ImGui::Separator();
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
HALSimGui::ntProvider->DisplayMenu();
|
2020-09-12 10:55:46 -07:00
|
|
|
ImGui::EndMenu();
|
|
|
|
|
}
|
|
|
|
|
if (ImGui::BeginMenu("DS")) {
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
DriverStationGui::dsManager->DisplayMenu();
|
2020-09-12 10:55:46 -07:00
|
|
|
ImGui::EndMenu();
|
|
|
|
|
}
|
|
|
|
|
if (ImGui::BeginMenu("Plot")) {
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
bool paused = gPlotProvider->IsPaused();
|
2020-09-12 10:55:46 -07:00
|
|
|
if (ImGui::MenuItem("Pause All Plots", nullptr, &paused)) {
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
gPlotProvider->SetPaused(paused);
|
2020-09-12 10:55:46 -07:00
|
|
|
}
|
|
|
|
|
ImGui::Separator();
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
gPlotProvider->DisplayMenu();
|
2020-09-12 10:55:46 -07:00
|
|
|
ImGui::EndMenu();
|
|
|
|
|
}
|
|
|
|
|
if (ImGui::BeginMenu("Window")) {
|
[glass] Use JSON files for storage instead of imgui ini
Storage is now nested.
Separate "roots" can be configured which save to separate files.
In particular, this is used to save wpigui and ImGui window position
to a -window.json file.
ImGui's ini (for window position) is mapped to JSON.
You can optionally specify a directory to load from on the command line.
If one isn't provided, it uses the global system directory.
Any changes made are automatically saved here.
Workspace | Open: select directory, the current layout is replaced with that
workspace, and future auto-saves also switch to that location. The main
window size/location is not changed, only the contents.
Workspace | Save As: select directory, the current layout is saved there,
and future auto-saves also switch to that location.
Workspace | Reset: window locations are preserved, but all other settings
are reset to default (including e.g. removing plot windows). This will also
end up clearing the current save file. as with load, the main window
size/location is not changed.
Workspace | Save As Global: "save as" to the global system location
Notably, the main window size/location is only loaded at startup, but is
auto-saved as part of the current workspace.
2021-11-25 00:51:00 -08:00
|
|
|
HALSimGui::manager->DisplayMenu();
|
2020-09-12 10:55:46 -07:00
|
|
|
ImGui::EndMenu();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2023-01-18 20:42:58 -08:00
|
|
|
if (!gui::Initialize("Robot Simulation", 1280, 720,
|
|
|
|
|
ImGuiConfigFlags_DockingEnable)) {
|
2020-12-28 12:58:06 -08:00
|
|
|
return 0;
|
|
|
|
|
}
|
2020-09-02 20:51:43 -07:00
|
|
|
HAL_RegisterExtensionListener(
|
|
|
|
|
nullptr, [](void*, const char* name, void* data) {
|
2021-06-06 16:13:58 -07:00
|
|
|
if (std::string_view{name} == "ds_socket") {
|
2020-09-02 20:51:43 -07:00
|
|
|
DriverStationGui::SetDSSocketExtension(data);
|
|
|
|
|
}
|
|
|
|
|
});
|
2020-09-12 10:55:46 -07:00
|
|
|
HAL_SetMain(
|
|
|
|
|
nullptr,
|
|
|
|
|
[](void*) {
|
|
|
|
|
gui::Main();
|
|
|
|
|
glass::DestroyContext();
|
|
|
|
|
gui::DestroyContext();
|
|
|
|
|
},
|
|
|
|
|
[](void*) { gui::Exit(); });
|
2021-06-06 16:13:58 -07:00
|
|
|
std::puts("Simulator GUI Initialized!");
|
2019-09-23 00:24:10 -07:00
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
} // extern "C"
|