mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
ActionReplay: Remove an alloca call
This commit is contained in:
@ -229,16 +229,14 @@ static void LogInfo(const char *format, ...)
|
|||||||
{
|
{
|
||||||
if (LogManager::GetMaxLevel() >= LogTypes::LINFO || logSelf)
|
if (LogManager::GetMaxLevel() >= LogTypes::LINFO || logSelf)
|
||||||
{
|
{
|
||||||
char* temp = (char*)alloca(strlen(format)+512);
|
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
CharArrayFromFormatV(temp, 512, format, args);
|
std::string text = StringFromFormatV(format, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
INFO_LOG(ACTIONREPLAY, "%s", temp);
|
INFO_LOG(ACTIONREPLAY, "%s", text.c_str());
|
||||||
|
|
||||||
if (logSelf)
|
if (logSelf)
|
||||||
{
|
{
|
||||||
std::string text = temp;
|
|
||||||
text += '\n';
|
text += '\n';
|
||||||
arLog.push_back(text);
|
arLog.push_back(text);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user