mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2025-01-27 00:55:33 +01:00
Improve flashcart info
SC64 only. Other flashcarts may show wrong info (but they are not yet supported anyway).
This commit is contained in:
parent
0116c14667
commit
329ba270ff
@ -2,6 +2,10 @@
|
|||||||
#include "../sound.h"
|
#include "../sound.h"
|
||||||
|
|
||||||
|
|
||||||
|
static inline const char *format_boolean_type (bool bool_value) {
|
||||||
|
return bool_value ? "Supported" : "Unsupported";
|
||||||
|
}
|
||||||
|
|
||||||
static void process (menu_t *menu) {
|
static void process (menu_t *menu) {
|
||||||
if (menu->actions.back) {
|
if (menu->actions.back) {
|
||||||
menu->next_mode = MENU_MODE_BROWSER;
|
menu->next_mode = MENU_MODE_BROWSER;
|
||||||
@ -18,10 +22,33 @@ static void draw (menu_t *menu, surface_t *d) {
|
|||||||
|
|
||||||
component_main_text_draw(
|
component_main_text_draw(
|
||||||
ALIGN_CENTER, VALIGN_TOP,
|
ALIGN_CENTER, VALIGN_TOP,
|
||||||
"FLASHCART INFORMATION\n"
|
"FLASHCART INFORMATION"
|
||||||
"\n"
|
"\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This feature is not yet supported.\n\n"
|
);
|
||||||
|
|
||||||
|
component_main_text_draw(
|
||||||
|
ALIGN_LEFT, VALIGN_TOP,
|
||||||
|
"\n"
|
||||||
|
"\n"
|
||||||
|
"Type:\n"
|
||||||
|
" %s\n\n"
|
||||||
|
"Firmware:\n"
|
||||||
|
" %s\n\n"
|
||||||
|
"Features:\n"
|
||||||
|
" Virtual 64DD: %s.\n"
|
||||||
|
" Real Time Clock: %s.\n"
|
||||||
|
" USB Debugging: %s.\n"
|
||||||
|
" CIC Detection: %s.\n"
|
||||||
|
" Region Detection: %s.\n"
|
||||||
|
"\n\n",
|
||||||
|
"SummerCart64",
|
||||||
|
"V?.?.?",
|
||||||
|
format_boolean_type(true),
|
||||||
|
format_boolean_type(true),
|
||||||
|
format_boolean_type(true),
|
||||||
|
format_boolean_type(true),
|
||||||
|
format_boolean_type(true)
|
||||||
);
|
);
|
||||||
|
|
||||||
// FIXME: Display:
|
// FIXME: Display:
|
||||||
@ -30,13 +57,6 @@ static void draw (menu_t *menu, surface_t *d) {
|
|||||||
// * supported features (flashcart_features_t)
|
// * supported features (flashcart_features_t)
|
||||||
|
|
||||||
|
|
||||||
component_main_text_draw(
|
|
||||||
ALIGN_LEFT, VALIGN_TOP,
|
|
||||||
"\n"
|
|
||||||
"\n"
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
component_actions_bar_text_draw(
|
component_actions_bar_text_draw(
|
||||||
ALIGN_LEFT, VALIGN_TOP,
|
ALIGN_LEFT, VALIGN_TOP,
|
||||||
"\n"
|
"\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user