mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-19 06:02:40 +00:00
IPC: Add functions to read the input move/copy objects from an IPC request.
This commit is contained in:
@@ -233,6 +233,12 @@ public:
|
||||
*/
|
||||
template <typename T>
|
||||
T PopRaw();
|
||||
|
||||
template <typename T>
|
||||
Kernel::SharedPtr<T> GetMoveObject(size_t index);
|
||||
|
||||
template <typename T>
|
||||
Kernel::SharedPtr<T> GetCopyObject(size_t index);
|
||||
};
|
||||
|
||||
/// Pop ///
|
||||
@@ -293,4 +299,14 @@ void RequestParser::Pop(First& first_value, Other&... other_values) {
|
||||
Pop(other_values...);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
Kernel::SharedPtr<T> RequestParser::GetMoveObject(size_t index) {
|
||||
return context->GetMoveObject<T>(index);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
Kernel::SharedPtr<T> RequestParser::GetCopyObject(size_t index) {
|
||||
return context->GetCopyObject<T>(index);
|
||||
}
|
||||
|
||||
} // namespace IPC
|
||||
|
||||
Reference in New Issue
Block a user