mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-04 16:53:48 -04:00
Pass screen status and mmc struct from stage1 to 2
This commit is contained in:
parent
116eb6c67c
commit
b2139ed182
13 changed files with 139 additions and 30 deletions
|
@ -23,14 +23,14 @@ static bool g_do_nxboot;
|
|||
|
||||
static void setup_env(void) {
|
||||
/* Set the console up. */
|
||||
if (console_init() == -1) {
|
||||
if (console_init(g_stage2_args->display_initialized) == -1) {
|
||||
generic_panic();
|
||||
}
|
||||
|
||||
/* Set up exception handlers. */
|
||||
setup_exception_handlers();
|
||||
|
||||
if(switchfs_mount_all() == -1) {
|
||||
if(switchfs_import_mmc_structs(&g_stage2_args->sd_mmc, NULL) == -1 || switchfs_mount_all() == -1) {
|
||||
fatal_error("Failed to mount at least one parition: %s\n", strerror(errno));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue