Decompile fn_18187 (ResourceAliases::Load)

Batch #14590 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_18187 ResourceAliases::Load: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, secret, Tanke, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 18:05:37 +00:00
commit f022b6743e

View file

@ -55,7 +55,7 @@ void ResourceAliases::Load(int) {
}
const std::uint32_t bytes = file.GetSize();
auto* contents = static_cast<char*>(std::malloc(bytes + 1));
auto* contents = new char[bytes + 1];
file.Read(contents, bytes);
contents[bytes] = '\0';
file.Close();
@ -82,6 +82,6 @@ void ResourceAliases::Load(int) {
}
if (contents) {
std::free(contents);
delete[] contents;
}
}