Decompile fn_02601 (CFile::Write)

Batch #13228 by cremane: 1 byte-identical, 0 confirmed by peer review.

- fn_02601 CFile::Write: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 12:04:32 +00:00
commit a58195ddd1

View file

@ -68,8 +68,12 @@ bool CFile::Open(const char* path, int mode, bool resourcePath, bool option) {
// OFFSET: 0x0057C340
// FUNCTION: fn_02601
bool CFile::Write(const void* data, std::uint32_t bytes) {
DWORD written;
return this->m_handle != INVALID_HANDLE_VALUE && WriteFile(this->m_handle, data, bytes, &written, nullptr);
if (this->m_handle != INVALID_HANDLE_VALUE) {
DWORD written;
return WriteFile(this->m_handle, data, bytes, &written, nullptr) != FALSE;
}
return false;
}
// OFFSET: 0x0057C260