mirror of
https://github.com/limine-bootloader/limine
synced 2025-02-27 14:34:20 +03:00
Setting different error message for boot failure when booting from menu or booting from the editor
This commit is contained in:
parent
6ae857bc4c
commit
d0124c5bed
@ -52,7 +52,12 @@ noreturn void panic(bool allow_menu, const char *fmt, ...) {
|
||||
efi_boot_services_exited == false &&
|
||||
#endif
|
||||
allow_menu == true) {
|
||||
print("Press a key to return to menu.");
|
||||
if (booting_from_editor == true) {
|
||||
print("Press a key to return to editor.");
|
||||
}
|
||||
else {
|
||||
print("Press a key to return to menu.");
|
||||
}
|
||||
|
||||
getchar();
|
||||
|
||||
|
@ -36,6 +36,7 @@ SECTIONS
|
||||
full_map = .;
|
||||
getchar = .;
|
||||
menu = .;
|
||||
booting_from_editor = .;
|
||||
flanterm_write = .;
|
||||
term_backend = .;
|
||||
term_fallback = .;
|
||||
|
@ -38,7 +38,7 @@ EFI_GUID limine_efi_vendor_guid =
|
||||
|
||||
static char *menu_branding = NULL;
|
||||
static char *menu_branding_colour = NULL;
|
||||
static no_unwind bool booting_from_editor = false;
|
||||
no_unwind bool booting_from_editor = false;
|
||||
static no_unwind char saved_orig_entry[EDITOR_MAX_BUFFER_SIZE];
|
||||
static no_unwind char saved_title[64];
|
||||
|
||||
|
@ -15,4 +15,6 @@ noreturn void boot(char *config);
|
||||
|
||||
char *config_entry_editor(const char *title, const char *orig_entry);
|
||||
|
||||
extern bool booting_from_editor;
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user