Esempio n. 1
0
        private void removeNIDInfo(NIDInfo info)
        {
            IDictionary <int, NIDInfo> moduleMap = moduleNidMap[info.ModuleName];

            if (moduleMap != null)
            {
                moduleMap.Remove(info.Nid);
                if (moduleMap.Count == 0)
                {
                    moduleNidMap.Remove(info.ModuleName);
                }
            }

            // For HLE NID's, do not trust the module names defined in pspsharp, use only the NID.
            if (!info.ValidModuleName)
            {
                nidMap.Remove(info.Nid);
            }

            if (info.hasAddress())
            {
                addressMap.Remove(info.Address);
            }

            if (info.hasSyscall())
            {
                syscallMap.Remove(info.Syscall);
            }

            if (info.hasName())
            {
                nameMap.Remove(info.Name);
            }
        }
Esempio n. 2
0
        private void addNIDInfo(NIDInfo info)
        {
            IDictionary <int, NIDInfo> moduleMap = moduleNidMap[info.ModuleName];

            if (moduleMap == null)
            {
                moduleMap = new Dictionary <int, NIDInfo>();
                moduleNidMap[info.ModuleName] = moduleMap;
            }
            moduleMap[info.Nid] = info;

            // For HLE NID's, do not trust the module names defined in pspsharp, use only the NID.
            if (!info.ValidModuleName)
            {
                nidMap[info.Nid] = info;
            }

            if (info.hasAddress())
            {
                addressMap[info.Address] = info;
            }

            if (info.hasSyscall())
            {
                syscallMap[info.Syscall] = info;
            }

            if (info.hasName())
            {
                nameMap[info.Name] = info;
            }
        }