diff --git a/nx/include/switch/applets/error.h b/nx/include/switch/applets/error.h index cb572ae0..59a6e112 100644 --- a/nx/include/switch/applets/error.h +++ b/nx/include/switch/applets/error.h @@ -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. */ diff --git a/nx/source/applets/error.c b/nx/source/applets/error.c index af11a403..f75a9929 100644 --- a/nx/source/applets/error.c +++ b/nx/source/applets/error.c @@ -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));