diff --git a/M2TWEOP Code/M2TWEOP library/Injects.cpp b/M2TWEOP Code/M2TWEOP library/Injects.cpp index d9ccc68e..30802660 100644 --- a/M2TWEOP Code/M2TWEOP library/Injects.cpp +++ b/M2TWEOP Code/M2TWEOP library/Injects.cpp @@ -8756,42 +8756,4 @@ void toRetreat::SetNewCode() m_cheatBytes = (unsigned char*)a->make(); delete a; -} - -sizeOfBattleField::sizeOfBattleField(MemWork* mem, UINT32 gamever, float sizeX, float sizeY) - :AATemplate(mem), sizeX(sizeX), sizeY(sizeY) -{ - if (gamever == 1)//disk ver - m_adress = 0x00441335; - else if (gamever == 2)//steam ver - m_adress = 0x00441675; -} - -sizeOfBattleField::~sizeOfBattleField() -{ -} - -void sizeOfBattleField::SetOriginalSizeCode() -{ - Assembler* a = new Assembler(); - a->mov(ecx, dword_ptr(eax, 0x00000080)); - a->ret(); - m_originalBytes = (unsigned char*)a->make(); - m_originalSize = m_memory->GetASMSize(m_originalBytes); - - delete a; -} - -void sizeOfBattleField::SetlSizeCode() -{ - Assembler* a = new Assembler(); - a->mov(dword_ptr(eax, 0x00000080), *(reinterpret_cast(&sizeX))); - a->mov(dword_ptr(eax, 0x0000007C), *(reinterpret_cast(&sizeY))); - - - a->mov(ecx, dword_ptr(eax, 0x00000080)); - a->ret(); - m_cheatBytes = (unsigned char*)a->make(); - - delete a; -} +} \ No newline at end of file