From ff9f4934607b82393147f52b385c5657fcf8db81 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Sun, 20 Apr 2025 14:18:02 +0100 Subject: [PATCH] fix skwbd numpa not showing --- sphaira/source/swkbd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sphaira/source/swkbd.cpp b/sphaira/source/swkbd.cpp index fb986ea..b5be771 100644 --- a/sphaira/source/swkbd.cpp +++ b/sphaira/source/swkbd.cpp @@ -42,14 +42,15 @@ Result ShowInternal(Config& cfg, const char* guide, const char* initial, s64 len } // namespace Result ShowText(std::string& out, const char* guide, const char* initial, s64 len_min, s64 len_max) { - Config cfg; + Config cfg{}; R_TRY(ShowInternal(cfg, guide, initial, len_min, len_max)); out = cfg.out_text; R_SUCCEED(); } Result ShowNumPad(s64& out, const char* guide, const char* initial, s64 len_min, s64 len_max) { - Config cfg; + Config cfg{}; + cfg.numpad = true; R_TRY(ShowInternal(cfg, guide, initial, len_min, len_max)); out = std::atoll(cfg.out_text); R_SUCCEED();