1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-05 19:51:45 +00:00
Atmosphere/stratosphere/fs_mitm/source/fsmitm_service.cpp

23 lines
651 B
C++
Raw Normal View History

#include <switch.h>
#include "fsmitm_service.hpp"
Result FsMitMService::dispatch(IpcParsedCommand &r, IpcCommand &out_c, u64 cmd_id, u8 *pointer_buffer, size_t pointer_buffer_size) {
Result rc = 0xF601;
return rc;
}
Result FsMitMService::postprocess(IpcParsedCommand &r, IpcCommand &out_c, u64 cmd_id, u8 *pointer_buffer, size_t pointer_buffer_size) {
struct {
u64 magic;
u64 result;
} *resp = (decltype(resp))r.Raw;
Result rc = (Result)resp->result;
/* TODO: Hook here, if needed. */
return rc;
}
Result FsMitMService::handle_deferred() {
/* This service is never deferrable. */
return 0;
}