exo: Add exosphere fatal binary support for Mariko

Can be overriden with `exofatal={SD path}`.
This commit is contained in:
CTCaer
2020-12-02 01:41:23 +02:00
parent 0ccea3aa83
commit 0a9931ddb3
4 changed files with 37 additions and 3 deletions

View File

@@ -261,6 +261,15 @@ static int _config_fss(launch_ctxt_t *ctxt, const char *value)
return parse_fss(ctxt, value, NULL);
}
static int _config_exo_fatal_payload(launch_ctxt_t *ctxt, const char *value)
{
ctxt->exofatal = sd_file_read(value, &ctxt->exofatal_size);
if (!ctxt->exofatal)
return 0;
return 1;
}
typedef struct _cfg_handler_t
{
const char *key;
@@ -278,6 +287,7 @@ static const cfg_handler_t _config_handlers[] = {
{ "stock", _config_stock },
{ "atmosphere", _config_atmosphere },
{ "fss0", _config_fss },
{ "exofatal", _config_exo_fatal_payload},
{ "emummcforce", _config_emummc_forced },
{ "nouserexceptions", _config_dis_exo_user_exceptions },
{ "userpmu", _config_exo_user_pmu_access },