function BodySetValue(Value: Single): Boolean;
begin
try
PBYTE(@Value)^ := PBYTE(@Value)^ xor $3A;
PBYTE(Pointer(DWORD(@Value) + 3))^ := PBYTE(Pointer(DWORD(@Value) + 3))^ xor $B8;
WPM4Byte(BodyAlloc[2] + $660, PDWORD(@Value)^);
except
end;
end;
end.
3A, B8, +3 이 부분들 어떻게 바뀐지 아시는 형님… 부탁드립니다
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+63 | 10-20 | 8767 | |
| 9767 | 13:22 | 99 | ||
| 9766 | 12-06 | 66 | ||
| 9765 | 패치님 소식 아시는분+13 | 12-06 | 220 | |
| 9764 | 12-06 | 135 | ||
| 9763 | 12-04 | 96 | ||
| 9762 | 12-02 | 221 | ||
| 9761 | 11-30 | 284 | ||
| 9760 | 11-28 | 145 | ||
| 9759 | 11-28 | 181 | ||
| 9758 | 11-28 | 319 | ||
| 9757 | 11-26 | 498 | ||
| 9756 | 11-25 | 530 | ||
| 9755 | 11-25 | 636 | ||
| 9754 | 11-25 | 385 | ||
| 9753 | 11-25 | 88 | ||
| 9752 | 11-24 | 136 | ||
| 9751 | 11-24 | 302 | ||
| 9750 | P@ 구합니다.+2 | 11-24 | 310 | |
| 9749 | 11-23 | 258 |
댓글2
64비트에 맞는 포인터랑 타입 수정 부터 하세요
function BodySetValue(Value: Single): Boolean;
var
TempValue: UInt32;
begin
try
TempValue := PUInt32(@Value)^;
TempValue := TempValue xor $3A;
TempValue := TempValue xor $B8;
WPM4Byte(BodyAlloc[2] + $660, TempValue);
Result := True;
except
Result := False;
end;
end;