Decompile fn_13305 (FormatThreadText)

Batch #7721 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_13305 FormatThreadText: logic confirmed by peer review

Peer-reviewed-by: Yommy, secret, Snow
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-10-31 11:23:03 +00:00
commit fab4a287c7

View file

@ -2849,6 +2849,17 @@ struct ThreadFormatBuffer {
};
// OFFSET: 0x00974630
// FUNCTION: fn_13305
const char* FormatThreadText(const char* format, ...) {
// GLOBAL: gl_25164
static std::map<int, ThreadFormatBuffer> buffers;
char* buffer = buffers[reinterpret_cast<int>(GetCurrentThread())].text;
va_list arguments;
va_start(arguments, format);
_vsnprintf(buffer, 0x800, format, arguments);
va_end(arguments);
return buffer;
}
// OFFSET: 0x00994D80
// FUNCTION: fn_13442