/// <summary> /// This function instantiates a Chatlog object /// </summary> /// <returns>Chatlog instance</returns> public Chatlog GetChatlog() { IntPtr pointer = _mr.ResolvePointerPath(Constants.CHATPTR); var c = new Chatlog(_mr.CreateStructFromAddress <Chatlog.CHATLOGINFO>(pointer), pointer); return(c); }
/// <summary> /// This function instantiates a Chatlog object /// </summary> /// <returns>Chatlog instance</returns> public Chatlog GetChatlog() { if (this.ChatLogLocation == IntPtr.Zero) { IntPtr ptr = _ss.SigScan(Constants.CHATSIGPTR); ptr = IntPtr.Add(ptr, Constants.CHATSIGPTR.Length); this.ChatLogLocation = _mr.ResolvePointer(ptr); } //IntPtr pointer = _mr.ResolvePointerPath(Constants.CHATPTR); //var c = new Chatlog(_mr.CreateStructFromAddress<Chatlog.CHATLOGINFO>(pointer), pointer); var c = new Chatlog(_mr.CreateStructFromAddress <Chatlog.CHATLOGINFO> (this.ChatLogLocation), this.ChatLogLocation); return(c); }