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 이 부분들 어떻게 바뀐지 아시는 형님… 부탁드립니다
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+64 | 10-20 | 8776 | |
| 9766 | 12-07 | 405 | ||
| 9765 | 12-06 | 109 | ||
| 9764 | 패치님 소식 아시는분+13 | 12-06 | 390 | |
| 9763 | 12-06 | 195 | ||
| 9762 | 12-04 | 123 | ||
| 9761 | 12-02 | 252 | ||
| 9760 | 11-30 | 318 | ||
| 9759 | 11-28 | 153 | ||
| 9758 | 11-28 | 200 | ||
| 9757 | 11-28 | 383 | ||
| 9756 | 11-26 | 542 | ||
| 9755 | 11-25 | 562 | ||
| 9754 | 11-25 | 665 | ||
| 9753 | 11-25 | 422 | ||
| 9752 | 11-25 | 96 | ||
| 9751 | 11-24 | 142 | ||
| 9750 | 11-24 | 330 | ||
| 9749 | P@ 구합니다.+2 | 11-24 | 326 | |
| 9748 | 11-23 | 282 |
댓글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;