skyline-dev / skyline

An environment for runtime hooking/code patching within Super Smash Bros Ultimate
MIT License
227 stars 33 forks source link

Add support for nn::err::ApplicationErrorArg #23

Closed Raytwo closed 4 years ago

Raytwo commented 4 years ago

Usage examples:


#include "nn/err.h"
...
// First constructor
nn::err::ApplicationErrorArg error = nn::err::ApplicationErrorArg();
error.SetApplicationErrorCodeNumber(69);
error.SetDialogMessage("Dialog message");
error.SetFullScreenMessage("Fullscreen message");
nn::err::ShowApplicationError(error);```

---------------------------------------------------------------------------------------
// Second constructor
nn::err::ApplicationErrorArg error = nn::err::ApplicationErrorArg(69, "Dialog message", "Fullscreen message", nn::settings::LanguageCode::Make(nn::settings::Language::Language_English));
nn::err::ShowApplicationError(error);```