mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
In errorSystemSetContext(), return immediately on pre-4.0.0.
This commit is contained in:
parent
68e3204a88
commit
6be5ad949e
@ -161,7 +161,7 @@ void errorSystemSetLanguageCode(ErrorSystemConfig* c, u64 LanguageCode);
|
||||
|
||||
/**
|
||||
* @brief Sets the ErrorContext.
|
||||
* @note Only available on [4.0.0+], on older versions \ref errorSystemShow will skip pushing the storage for this.
|
||||
* @note Only available on [4.0.0+], on older versions this will return without setting the context.
|
||||
* @param c ErrorSystemConfig struct.
|
||||
* @param ctx ErrorContext, NULL to clear it.
|
||||
*/
|
||||
|
@ -185,6 +185,8 @@ void errorSystemSetLanguageCode(ErrorSystemConfig* c, u64 LanguageCode) {
|
||||
}
|
||||
|
||||
void errorSystemSetContext(ErrorSystemConfig* c, ErrorContext* ctx) {
|
||||
if (hosversionBefore(4,0,0)) return;
|
||||
|
||||
c->arg.hdr.contextFlag = ctx!=0;
|
||||
memset(&c->ctx, 0, sizeof(ErrorContext));
|
||||
if (ctx) memcpy(&c->ctx, ctx, sizeof(ErrorContext));
|
||||
|
Loading…
Reference in New Issue
Block a user