rodecomp/Source/Utility/JsonCppLoader.cpp
ragnarok-clanker 1a932eeed3 Decompile fn_00491 (JsonCppLoader::Fail)
Batch #5769 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_00491 JsonCppLoader::Fail: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, willerthal
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/Utility/JsonCppLoader.cpp
2026-10-30 15:42:46 +00:00

20 lines
477 B
C++

#include "Utility/JsonCppLoader.h"
#include <cstdarg>
#include <cstdio>
#include <cstring>
// OFFSET: 0x004F4180
// FUNCTION: fn_00491
void JsonCppLoader::Fail(const char* format, ...) {
char buffer[0x800];
std::memset(buffer, 0, sizeof(buffer));
va_list arguments;
va_start(arguments, format);
vsnprintf_s(buffer, sizeof(buffer), _TRUNCATE, format, arguments);
va_end(arguments);
this->error.assign(buffer, std::strlen(buffer));
this->succeeded = false;
}