Где найти исходник MapZoom Fixer?

DarkP1xel

Сила воли наше всё.
BH Team
3,635
4,987
Вот вариант получше.

C++:
auto speedHackMenuMap(const unsigned __int32 ui32Status, const float *pZoomSpeed, const float *pMoveSpeed) -> void {
    /* CMenuManager::AdditionalOptionInput */
    if (ui32Status) {
        patchAddress(reinterpret_cast<void *>(0x57769A), &pZoomSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x5779C9), &pZoomSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x578652), &pMoveSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x5784B7), &pMoveSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x577E72), &pMoveSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x578322), &pMoveSpeed, 0x4);
    } else {
        patchAddress(reinterpret_cast<void *>(0x57769A), "\xE4\x53\x86\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x5779C9), "\xE4\x53\x86\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x578652), "\x48\x8F\x85\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x5784B7), "\x48\x8F\x85\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x577E72), "\x48\x8F\x85\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x578322), "\x48\x8F\x85\x00", 0x4);
    } return;
}
 

Михаил Бластов

Известный
Автор темы
457
169
Вот вариант получше.

C++:
auto speedHackMenuMap(const unsigned __int32 ui32Status, const float *pZoomSpeed, const float *pMoveSpeed) const -> void {
    /* CMenuManager::AdditionalOptionInput */
    if (ui32Status) {
        patchAddress(reinterpret_cast<void *>(0x57769A), &pZoomSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x5779C9), &pZoomSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x578652), &pMoveSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x5784B7), &pMoveSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x577E72), &pMoveSpeed, 0x4);
        patchAddress(reinterpret_cast<void *>(0x578322), &pMoveSpeed, 0x4);
    } else {
        patchAddress(reinterpret_cast<void *>(0x57769A), "\xE4\x53\x86\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x5779C9), "\xE4\x53\x86\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x578652), "\x48\x8F\x85\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x5784B7), "\x48\x8F\x85\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x577E72), "\x48\x8F\x85\x00", 0x4);
        patchAddress(reinterpret_cast<void *>(0x578322), "\x48\x8F\x85\x00", 0x4);
    } return;
}
квалификатор типа не разрешен на функции не элементам
ругается на const