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.
이부분 어떻게 바뀐지 아시는 형님….
제목 | 작성자 | 작성일 | 조회 | |
---|---|---|---|---|
공지 | 게시판 이용 안내+63 | 10-20 | 7937 | |
9459 | 07-01 | 85 | ||
9458 | 07-01 | 65 | ||
9457 | 07-01 | 176 | ||
9456 | 07-01 | 113 | ||
9455 | 06-28 | 95 | ||
9454 | 06-28 | 49 | ||
9453 | 06-28 | 64 | ||
9452 | 06-28 | 125 | ||
9451 | 06-27 | 72 | ||
9450 | 06-26 | 222 | ||
9449 | 06-26 | 69 | ||
9448 | 06-25 | 90 | ||
9447 | 06-25 | 543 | ||
9446 | 06-25 | 69 | ||
9445 | 06-24 | 170 | ||
9444 | 06-23 | 277 | ||
9443 | 06-23 | 95 | ||
9442 | 06-22 | 230 | ||
9441 | 06-22 | 70 |
댓글2
function BodySetValue(Value: Single): Boolean;
begin
try
PByte(@Value)^ := PByte(@Value)^ xor $3A;
PByte(Pointer(NativeUInt(@Value) + 3))^ := PByte(Pointer(NativeUInt(@Value) + 3))^ xor $B8;
WPM4Byte(BodyAlloc[2] + $660, PUInt32(@Value)^);
except
end;
end;
Pointer와 DWORD 자료형은 포인터의 크기를 나타내는 NativeUInt로 대체
PDWORD는 PUInt32로 대체 정수