mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-07-17 22:52:15 +02:00
libstrat: remove remaining IPC magic numbers
This commit is contained in:
parent
1034e0744a
commit
5be736876c
@ -576,7 +576,7 @@ constexpr Result WrapIpcCommandImpl(IpcResponseContext *ctx) {
|
|||||||
Result rc = Validator::Validate<CommandMetaData>(ctx);
|
Result rc = Validator::Validate<CommandMetaData>(ctx);
|
||||||
|
|
||||||
if (R_FAILED(rc)) {
|
if (R_FAILED(rc)) {
|
||||||
return 0xAAEE;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
ClassType *this_ptr = nullptr;
|
ClassType *this_ptr = nullptr;
|
||||||
@ -586,7 +586,7 @@ constexpr Result WrapIpcCommandImpl(IpcResponseContext *ctx) {
|
|||||||
this_ptr = ctx->obj_holder->GetServiceObject<ClassType>();
|
this_ptr = ctx->obj_holder->GetServiceObject<ClassType>();
|
||||||
}
|
}
|
||||||
if (this_ptr == nullptr) {
|
if (this_ptr == nullptr) {
|
||||||
return 0xBBEE;
|
return ResultServiceFrameworkTargetNotFound;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<IServiceObject> out_objects[CommandMetaData::NumOutSessions];
|
std::shared_ptr<IServiceObject> out_objects[CommandMetaData::NumOutSessions];
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
static constexpr u32 Module_ServiceFramework = 10;
|
static constexpr u32 Module_ServiceFramework = 10;
|
||||||
|
|
||||||
|
static constexpr Result ResultServiceFrameworkTargetNotFound = MAKERESULT(Module_ServiceFramework, 261);
|
||||||
|
|
||||||
static constexpr Result ResultServiceFrameworkOutOfDomainEntries = MAKERESULT(Module_ServiceFramework, 301);
|
static constexpr Result ResultServiceFrameworkOutOfDomainEntries = MAKERESULT(Module_ServiceFramework, 301);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user