Пример #1
0
        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));
        }
Пример #2
0
        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));
        }