mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-08 16:33:04 +00:00
if APPLE_DRIVER, set the default unit to the boot unit
This commit is contained in:
parent
fa06e26c9f
commit
4e79c0b645
@ -23,6 +23,10 @@
|
|||||||
#include "vga.h"
|
#include "vga.h"
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
|
|
||||||
|
#if defined(APPLE_DRIVER)
|
||||||
|
extern int *boot_unit;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MSG_STATE_0 console_set_cursor_position(win.l + win.h + 1, 1); \
|
#define MSG_STATE_0 console_set_cursor_position(win.l + win.h + 1, 1); \
|
||||||
printf(" Press 'b' or [RETURN] to boot or 'e' to edit\n");
|
printf(" Press 'b' or [RETURN] to boot or 'e' to edit\n");
|
||||||
|
|
||||||
@ -195,6 +199,10 @@ int read_config(emile_l2_header_t* info, emile_config_t *econfig)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(APPLE_DRIVER)
|
||||||
|
stream_set_default(*boot_unit);
|
||||||
|
#endif
|
||||||
|
|
||||||
configuration = open_config(info);
|
configuration = open_config(info);
|
||||||
|
|
||||||
if (config_get_property(configuration, "vga", property) != -1)
|
if (config_get_property(configuration, "vga", property) != -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user