diff nuklear_ui/blastem_nuklear.c @ 2604:c768bbd912f1

Give sega 8-bit consoles separate system_type enum values and allow selecting them from the command line
author Michael Pavone <pavone@retrodev.com>
date Thu, 13 Feb 2025 23:07:31 -0800
parents 251cc75574af
children cbf5a01e429e
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Thu Feb 13 21:04:28 2025 -0800
+++ b/nuklear_ui/blastem_nuklear.c	Thu Feb 13 23:07:31 2025 -0800
@@ -22,7 +22,6 @@
 #include "../controller_info.h"
 #include "../bindings.h"
 #include "../mediaplayer.h"
-#include "../sms.h"
 
 static struct nk_context *context;
 static struct rawfb_context *fb_context;
@@ -2470,7 +2469,7 @@
 	};
 
 	if (nk_begin(context, "Main Menu", nk_rect(0, 0, render_width(), render_height()), 0)) {
-		if (current_system->type == SYSTEM_SMS && ((sms_context *)current_system)->i8255) {
+		if (current_system->type == SYSTEM_SC3000) {
 			menu(context, sizeof(sc3k_items)/sizeof(*sc3k_items), sc3k_items, exit_handler);
 		} else {
 			menu(context, sizeof(items)/sizeof(*items), items, exit_handler);
@@ -2485,7 +2484,9 @@
 		{"Load ROM", view_load},
 		{"Settings", view_settings},
 		{"About", view_about},
+#ifndef __EMSCRIPTEN__
 		{"Exit", NULL}
+#endif
 	};
 
 	if (nk_begin(context, "Main Menu", nk_rect(0, 0, render_width(), render_height()), 0)) {