Removed use of std::exit and changed recomp runtime to exit normally, added helpers for getting recompiled args and returning values, added example of patch code calling native code

This commit is contained in:
Mr-Wiseguy
2023-11-12 14:47:38 -05:00
parent 398988a961
commit 8188aee2c1
21 changed files with 264 additions and 60 deletions
+10 -1
View File
@@ -587,6 +587,10 @@ struct {
Rml::Context* context;
std::unique_ptr<Rml::EventListenerInstancer> event_listener_instancer;
void unload() {
render_interface.reset();
}
void swap_document(Menu menu) {
if (current_document != nullptr) {
current_document->Hide();
@@ -751,4 +755,9 @@ void set_rt64_hooks() {
void set_current_menu(Menu menu) {
open_menu.store(menu);
}
}
void destroy_ui() {
Rml::Shutdown();
UIContext.rml.unload();
}