private void SetMaxPop(int pop)
        {
            int address = pRaW.GetBaseAddress() + 0x294666;

            // MOV EDX, POPULATION
            byte[] maxPopInstrucction =
            {
                0xB8, // MOV
                (byte)(pop & 0xff),
                (byte)((pop >> 8) & 0xff),
                0x00,
                0x00,
                0xC3, // nop
            };
            pRaW.WriteMemory(address, maxPopInstrucction);
            isMaxPopEdited = true;
            editedMaxPop   = pop;
        }
Esempio n. 2
0
        private void SetMaxPop(int pop)
        {
            int address = pRaW.GetBaseAddress() + 0x292ED6;

            // mov eax, pop
            // ret = 0xC3
            byte[] maxPopInstrucction =
            {
                0xB8,
                (byte)(pop & 0xff),
                (byte)((pop >> 8) & 0xff),
                (byte)((pop >> 16) & 0xff),
                (byte)((pop >> 24) & 0xff),
                0xC3
            };
            pRaW.WriteMemory(address, maxPopInstrucction);
            isMaxPopEdited = true;
            editedMaxPop   = pop;
        }