AgaHackTools.Example.MemoryModule.OffsetScanner.vMatrix C# (CSharp) Method

vMatrix() static private method

static private vMatrix ( ISmartMemory memUtils ) : void
memUtils ISmartMemory
return void
        static void vMatrix(ISmartMemory memUtils)
        {
            var pattern = new byte[] {
                0xE8, 0x00, 0x00, 0x00, 0x00, 0x8D, 0x95, 0xE0 };
            scan = memUtils["client.dll"].Find(pattern);
            if (scan.Success)
            {
                int address = memUtils.Read<int>((IntPtr)(scan.Address.ToInt32() - 0x1a));
                address -= clientDllBase;
                address += 0x90;
                Offsets.ViewMatrix = new IntPtr(address);
            }
        }