public void RefreshName(bool unhash = false) { if (!this.bNameIsLabel && this.IID != FNVHash.HashString64(this.mName)) { if (KeyNameReg.TryFindName( this.IID, out this.mName)) { this.bNameIsLabel = false; } else if (KeyNameReg.TryFindLabel( this.IID, out this.mName)) { this.bNameIsLabel = true; } else if (unhash) { this.mName = KeyNameReg.UnhashName(this.IID); this.bNameIsLabel = false; } else { this.mName = "0x" + this.IID.ToString("X16"); this.bNameIsLabel = false; } } }
public ResEntry(uint gid, ulong iid) { this.GID = gid; this.IID = iid; if (KeyNameReg.TryFindName(iid, out this.mName)) { this.bNameIsLabel = false; } else if (KeyNameReg.TryFindLabel(iid, out this.mName)) { this.bNameIsLabel = true; } else { this.mName = "0x" + iid.ToString("X16"); this.bNameIsLabel = false; } }