Logger: Use platform-agnostic aligned alloc

This commit is contained in:
Dr. Chat 2017-02-05 20:39:46 -06:00
parent 2b8698d6e2
commit 7fb31462e4
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include "xenia/base/filesystem.h"
#include "xenia/base/main.h"
#include "xenia/base/math.h"
#include "xenia/base/memory.h"
#include "xenia/base/ring_buffer.h"
#include "xenia/base/threading.h"
@ -215,7 +216,7 @@ class Logger {
void InitializeLogging(const std::wstring& app_name) {
// We leak this intentionally - lots of cleanup code needs it.
void* mem = _aligned_malloc(sizeof(Logger), 0x10);
auto mem = memory::AlignedAlloc<Logger>(0x10);
logger_ = new (mem) Logger(app_name);
}