File tree Expand file tree Collapse file tree 3 files changed +51
-4
lines changed Expand file tree Collapse file tree 3 files changed +51
-4
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,10 @@ HDSubState input_hosts_and_devices_hosts(void)
284284 bar_jump (selected_host_slot );
285285 k = 0 ;
286286 return HD_HOSTS ;
287+ case 'l' :
288+ case 'L' :
289+ mount_and_boot_lobby ();
290+ return HD_HOSTS ;
287291 case '1' :
288292 case '2' :
289293 case '3' :
@@ -316,6 +320,10 @@ HDSubState input_hosts_and_devices_devices(void)
316320 case 'e' :
317321 hosts_and_devices_eject ((byte )bar_get ());
318322 break ;
323+ case 'L' :
324+ case 'l' :
325+ mount_and_boot_lobby ();
326+ return HD_DEVICES ;
319327 case 'R' :
320328 case 'r' :
321329 selected_device_slot = (byte )bar_get ();
Original file line number Diff line number Diff line change 11#ifdef _CMOC_VERSION_
22
33#include "mount_and_boot.h"
4+ #include "../screen.h"
45#include "../typedefs.h"
6+ #include "../globals.h"
57
68void mount_and_boot_lobby (void )
79{
10+ if (screen_mount_and_boot_lobby ())
11+ {
12+ fuji_set_boot_mode (2 );
13+ system_boot ();
14+ }
15+ else
16+ {
17+ if (hd_subState == HD_HOSTS )
18+ {
19+ screen_hosts_and_devices_hosts ();
20+ }
21+ else if (hd_subState == HD_DEVICES )
22+ {
23+ screen_hosts_and_devices_devices ();
24+ }
25+ }
826}
927
1028void mount_and_boot (void )
Original file line number Diff line number Diff line change @@ -571,14 +571,35 @@ void screen_connect_wifi(NetConfig *nc)
571571 screen_add_shadow (9 ,BLUE ); // change to CYAN
572572}
573573
574+ bool screen_mount_and_boot_lobby (void )
575+ {
576+ unsigned char k ;
577+
578+ // Confirm we want to go to there
579+ locate (0 , 15 );
580+ printf (" BOOT TO LOBBY? y/n" );
581+
582+ k = waitkey (true);
583+
584+ switch (k )
585+ {
586+ case 'Y' :
587+ case 'y' :
588+ return true;
589+ default :
590+ return false;
591+ }
592+ }
593+
574594void screen_end (void )
575595{
576- // Restore the original casing flag.
577- asm {
596+ // Restore the original casing flag.
597+ asm
598+ {
578599 lda orig_casflag
579600 sta $011A
580- }
581- return ;
601+ }
602+ return ;
582603}
583604
584605#endif
You can’t perform that action at this time.
0 commit comments