Ejemplo n.º 1
0
        private static void NetClientSendDetour(IntPtr parClientConn, int parDataStore)
        {
            Memory.Reader.Write <int>((IntPtr)parDataStore, 0x7FF9E4);

            ////Console.WriteLine();
            DataStoreStruct ds = Memory.Reader.Read <DataStoreStruct>((IntPtr)parDataStore);
            ////Console.WriteLine("vTable: " + ds.vTable.ToString("X"));
            ////Console.WriteLine("Buffer: " + ds.buffer.ToString("X"));
            ////Console.WriteLine("Base: " + ds._base);
            ////Console.WriteLine("Size: " + ds.size);
            ////Console.WriteLine("Read: " + ds.read);

            int    opCode     = Memory.Reader.Read <int>((IntPtr)ds.buffer);
            string opCodeName = Enum.GetName(typeof(Offsets.OpCodes), opCode);

            //Console.WriteLine("OpCode: " + opCodeName);

            //Console.WriteLine();


            //int basePtr = Memory.Reader.Read<int>((IntPtr)parDataStore + 4);
            //int opCode = Memory.Reader.Read<int>((IntPtr)basePtr);
            //string opCodeName = Enum.GetName(typeof(Offsets.OpCodes), opCode);

            ////Console.WriteLine(opCodeName
            //);



            _NetClientSend.Remove();
            NetClientSendDelegate(parClientConn, parDataStore);
            _NetClientSend.Apply();
        }
Ejemplo n.º 2
0
 internal DataStore()
 {
     buffer    = new List <byte>();
     ds        = new DataStoreStruct();
     ds.vTable = 0x7FF9E4;
     ds._base  = 0;
     ds.read   = 0;
     ds.type   = 256;
 }