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:
parent
9929ada481
commit
fab4a287c7
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue