mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 17:01:49 +01:00
Stub ErrorCommonArg
This commit is contained in:
parent
68253fe995
commit
dcc3047ba8
@ -21,6 +21,9 @@ namespace skyline::applet {
|
|||||||
Logger::Debug("ErrorApplet: version: 0x{:X}, type: 0x{:X}", commonArg.apiVersion, errorCommonHeader.type);
|
Logger::Debug("ErrorApplet: version: 0x{:X}, type: 0x{:X}", commonArg.apiVersion, errorCommonHeader.type);
|
||||||
|
|
||||||
switch (errorCommonHeader.type) {
|
switch (errorCommonHeader.type) {
|
||||||
|
case ErrorType::ErrorCommonArg:
|
||||||
|
HandleErrorCommonArg();
|
||||||
|
break;
|
||||||
case ErrorType::ApplicationErrorArg:
|
case ErrorType::ApplicationErrorArg:
|
||||||
HandleApplicationErrorArg();
|
HandleApplicationErrorArg();
|
||||||
break;
|
break;
|
||||||
@ -34,6 +37,11 @@ namespace skyline::applet {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ErrorApplet::HandleErrorCommonArg() {
|
||||||
|
auto errorCommonArg{errorStorage->GetSpan().as<ErrorCommonArg>()};
|
||||||
|
Logger::Error("ErrorApplet: error code: 0x{:X}, result: 0x{:X}", errorCommonArg.errorCode, errorCommonArg.result);
|
||||||
|
}
|
||||||
|
|
||||||
void ErrorApplet::HandleApplicationErrorArg() {
|
void ErrorApplet::HandleApplicationErrorArg() {
|
||||||
auto applicationErrorStorage{errorStorage->GetSpan().as<ApplicationErrorArg>()};
|
auto applicationErrorStorage{errorStorage->GetSpan().as<ApplicationErrorArg>()};
|
||||||
|
|
||||||
|
@ -41,6 +41,15 @@ namespace skyline::applet {
|
|||||||
};
|
};
|
||||||
static_assert(sizeof(ErrorCommonHeader) == 0x8);
|
static_assert(sizeof(ErrorCommonHeader) == 0x8);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @url https://switchbrew.org/wiki/Error_Applet#ErrorCommonArg
|
||||||
|
*/
|
||||||
|
struct ErrorCommonArg {
|
||||||
|
ErrorCommonHeader header;
|
||||||
|
u64 errorCode;
|
||||||
|
Result result;
|
||||||
|
};
|
||||||
|
|
||||||
struct ApplicationErrorArg {
|
struct ApplicationErrorArg {
|
||||||
ErrorCommonHeader commonHeader;
|
ErrorCommonHeader commonHeader;
|
||||||
u32 errorNumber;
|
u32 errorNumber;
|
||||||
@ -54,6 +63,8 @@ namespace skyline::applet {
|
|||||||
|
|
||||||
std::shared_ptr<service::am::IStorage> errorStorage;
|
std::shared_ptr<service::am::IStorage> errorStorage;
|
||||||
|
|
||||||
|
void HandleErrorCommonArg();
|
||||||
|
|
||||||
void HandleApplicationErrorArg();
|
void HandleApplicationErrorArg();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user