Ejemplo n.º 1
0
        public virtual int sceKernelGetBlockHeadAddr(int uid)
        {
            SceUidManager.checkUidPurpose(uid, "SysMem", true);

            SysMemInfo info = blockList[uid];

            if (info == null)
            {
                Console.WriteLine(string.Format("sceKernelGetBlockHeadAddr unknown uid=0x{0:X}", uid));
                return(SceKernelErrors.ERROR_KERNEL_ILLEGAL_CHUNK_ID);
            }

            return(info.addr);
        }
Ejemplo n.º 2
0
        public virtual int sceKernelFreePartitionMemory(int uid)
        {
            SceUidManager.checkUidPurpose(uid, "SysMem", true);

            SysMemInfo info = blockList.Remove(uid);

            if (info == null)
            {
                Console.WriteLine(string.Format("sceKernelFreePartitionMemory unknown uid=0x{0:X}", uid));
                return(SceKernelErrors.ERROR_KERNEL_ILLEGAL_CHUNK_ID);
            }

            free(info);

            return(0);
        }