Logger: Use platform-agnostic aligned alloc
This commit is contained in:
parent
2b8698d6e2
commit
7fb31462e4
|
@ -23,6 +23,7 @@
|
||||||
#include "xenia/base/filesystem.h"
|
#include "xenia/base/filesystem.h"
|
||||||
#include "xenia/base/main.h"
|
#include "xenia/base/main.h"
|
||||||
#include "xenia/base/math.h"
|
#include "xenia/base/math.h"
|
||||||
|
#include "xenia/base/memory.h"
|
||||||
#include "xenia/base/ring_buffer.h"
|
#include "xenia/base/ring_buffer.h"
|
||||||
#include "xenia/base/threading.h"
|
#include "xenia/base/threading.h"
|
||||||
|
|
||||||
|
@ -215,7 +216,7 @@ class Logger {
|
||||||
|
|
||||||
void InitializeLogging(const std::wstring& app_name) {
|
void InitializeLogging(const std::wstring& app_name) {
|
||||||
// We leak this intentionally - lots of cleanup code needs it.
|
// 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);
|
logger_ = new (mem) Logger(app_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue