mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 03:11:16 +00:00
hos: Disable stock secmon for Mariko until fixed
This commit is contained in:
parent
d1e3a0fdff
commit
8e45fcc069
3 changed files with 9 additions and 0 deletions
|
@ -125,7 +125,11 @@ int parse_fss(launch_ctxt_t *ctxt, const char *path, fss0_sept_t *sept_ctxt)
|
|||
stock = true;
|
||||
}
|
||||
|
||||
#ifdef HOS_MARIKO_STOCK_SECMON
|
||||
if (stock && emummc_disabled && (pkg1_old || h_cfg.t210b01))
|
||||
#else
|
||||
if (stock && emummc_disabled && pkg1_old)
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,9 @@
|
|||
#define HOS_PKG11_MAGIC 0x31314B50
|
||||
#define HOS_EKS_MAGIC 0x30534B45
|
||||
|
||||
// Use official Mariko secmon when in stock.
|
||||
//#define HOS_MARIKO_STOCK_SECMON
|
||||
|
||||
typedef struct _exo_ctxt_t
|
||||
{
|
||||
bool fs_is_510;
|
||||
|
|
|
@ -264,6 +264,7 @@ void pkg1_secmon_patch(void *hos_ctxt, u32 secmon_base, bool t210b01)
|
|||
// For T210 till 6.2.0 the patching is used as is, because of no compression.
|
||||
secmon_patchset = ctxt->pkg1_id->secmon_patchset;
|
||||
}
|
||||
#ifdef HOS_MARIKO_STOCK_SECMON
|
||||
else if (t210b01)
|
||||
{
|
||||
// For T210B01 we patch 6.X.X as is. Otherwise we decompress the program payload.
|
||||
|
@ -294,6 +295,7 @@ void pkg1_secmon_patch(void *hos_ctxt, u32 secmon_base, bool t210b01)
|
|||
*(vu32 *)patch_offset = _NOP();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue