public static unsafe void Cmd_CreateFiFo(SystemMessage *msg) { var path = NullTerminatedString.ToString((byte *)msg->Arg1); var fifo = new FifoFile() { }; var vfsFile = new VfsFile { Path = path, Buffer = fifo, }; Files.Add(vfsFile); MessageManager.Send(new SystemMessage(SysCallTarget.ServiceReturn)); }
public static unsafe void Cmd_CreateMemoryFile(SystemMessage *msg) { var start = msg->Arg1; var length = msg->Arg2; var data = (char *)start; var path = new string(data); var fifo = new FifoFile() { }; var vfsFile = new VfsFile { Path = path, Buffer = fifo, }; Files.Add(vfsFile); MessageManager.Send(new SystemMessage(SysCallTarget.ServiceReturn)); }