From d74673ab292e9f2445f0119e2b1534a9114e6f32 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 4 Nov 2022 03:55:57 +0800 Subject: [PATCH] allow main menu to be used if there are no root keys --- services/pddb/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/pddb/src/main.rs b/services/pddb/src/main.rs index f74bc4810..4e4944e70 100644 --- a/services/pddb/src/main.rs +++ b/services/pddb/src/main.rs @@ -662,6 +662,9 @@ fn wrapped_main() -> ! { if !pddb_os.rootkeys_initialized() { // can't mount if we have no root keys log::info!("{}PDDB.SKIPMOUNT,{}", xous::BOOKEND_START, xous::BOOKEND_END); + // allow the main menu to be used in this case + let gam = gam::Gam::new(&xns).unwrap(); + gam.allow_mainmenu().expect("coudln't allow main menu activation"); xous::return_scalar2(msg.sender, 1, 0).expect("could't return scalar"); } else { match ensure_password(&modals, &mut pddb_os, pw_cid) {