summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2026-01-22 21:31:59 -0600
committerGitHub <noreply@github.com>2026-01-22 21:31:59 -0600
commit1fdc7ba6de47c80e619d4102f56ca6827c7c7c03 (patch)
tree8ea7a8ecf027f181f3d43cf9e7c1748e6e74e512
parent079f44bae3d3fe0bd01de01111a01edbb1b81a8c (diff)
Increase save buffer. Again. (#1493)
* Increase save buffer. Again. * Sneak in a small menu fix
-rw-r--r--mm/2s2h/BenGui/MenuTypes.h10
-rw-r--r--mm/include/z64save.h4
2 files changed, 9 insertions, 5 deletions
diff --git a/mm/2s2h/BenGui/MenuTypes.h b/mm/2s2h/BenGui/MenuTypes.h
index b3d52eda2..623e4fc52 100644
--- a/mm/2s2h/BenGui/MenuTypes.h
+++ b/mm/2s2h/BenGui/MenuTypes.h
@@ -89,9 +89,9 @@ typedef enum {
// holds the widget values for a widget, contains all CVar types available from LUS. int32_t is used for boolean
// evaluation
using CVarVariant = std::variant<int32_t, const char*, float, Color_RGBA8, Color_RGB8>;
-using OptionsVariant =
- std::variant<UIWidgets::ButtonOptions, UIWidgets::CheckboxOptions, UIWidgets::ComboboxOptions,
- UIWidgets::FloatSliderOptions, UIWidgets::IntSliderOptions, UIWidgets::WidgetOptions>;
+using OptionsVariant = std::variant<UIWidgets::ButtonOptions, UIWidgets::CheckboxOptions, UIWidgets::ComboboxOptions,
+ UIWidgets::FloatSliderOptions, UIWidgets::IntSliderOptions,
+ UIWidgets::BtnSelectorOptions, UIWidgets::WidgetOptions>;
// All the info needed for display and search of all widgets in the menu.
// `name` is the label displayed,
@@ -159,6 +159,10 @@ struct WidgetInfo {
case WIDGET_WINDOW_BUTTON:
options = std::make_shared<UIWidgets::ButtonOptions>(std::get<UIWidgets::ButtonOptions>(options_));
break;
+ case WIDGET_CVAR_BTN_SELECTOR:
+ options =
+ std::make_shared<UIWidgets::BtnSelectorOptions>(std::get<UIWidgets::BtnSelectorOptions>(options_));
+ break;
case WIDGET_TEXT:
case WIDGET_SEPARATOR_TEXT:
case WIDGET_SEPARATOR:
diff --git a/mm/include/z64save.h b/mm/include/z64save.h
index 58b984266..d5e265e77 100644
--- a/mm/include/z64save.h
+++ b/mm/include/z64save.h
@@ -33,8 +33,8 @@ typedef enum RespawnMode {
/* 8 */ RESPAWN_MODE_MAX
} RespawnMode;
-// 2S2H [Port] Quadruple the size of the Save Buffer to support more data, eg rando
-#define SAVE_BUFFER_SIZE 0x4000 * 4
+// 2S2H [Port] Increase the size of the Save Buffer to support more data, eg rando
+#define SAVE_BUFFER_SIZE 0x4000 * 8
#define SAVE_BUFFER_SIZE_HALF (SAVE_BUFFER_SIZE / 2)
// 2S2H [Enhancement] Extended for file 3 support