strat: use sf::NativeHandle for ipc templating

This commit is contained in:
Michael Scire committed 2021-10-05 00:11:36 -07:00
1 parent d97e97258e
commit 69777cf792
41 files changed
+447 -454

No files matched your search

@@ -27,11 +27,12 @@ namespace ams::fs::impl {
private:
virtual Result DoBindEvent(os::SystemEventType *out, os::EventClearMode clear_mode) override {
/* Get the handle. */
sf::CopyHandle handle;
sf::NativeHandle handle;
AMS_FS_R_TRY(m_object->GetEventHandle(std::addressof(handle)));
/* Create the system event. */
os::AttachReadableHandleToSystemEvent(out, handle, true, clear_mode);
os::AttachReadableHandleToSystemEvent(out, handle.GetOsHandle(), handle.IsManaged(), clear_mode);
handle.Detach();
return ResultSuccess();
}