MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / editReceivePin

Method editReceivePin

3ds/source/SettingsScreen.cpp:608–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608void SettingsScreen::editReceivePin(void)
609{
610 // 0 is the "no fixed PIN" sentinel rather than a fourth-digit-zero PIN: the
611 // keypad has no way to express "clear", and 0000 is the one value a user
612 // gains nothing by pinning.
613 const int entered = KeyboardManager::get().numpad(i18n::t("settings.network.receive_pin.prompt"), 0, 9999);
614 if (entered < 0) {
615 return; // cancelled
616 }
617 Configuration::getInstance().setDefaultReceivePin(entered == 0 ? "" : StringUtils::format("%04d", entered));
618 savedTimer = SAVED_FLASH_FRAMES;
619}
620
621void SettingsScreen::editServerPort(void)
622{

Callers

nothing calls this directly

Calls 3

getFunction · 0.85
numpadMethod · 0.45
setDefaultReceivePinMethod · 0.45

Tested by

no test coverage detected