Code cleanup: moving poly logging to xenia

This commit is contained in:
Ben Vanik
2015-05-02 01:59:50 -07:00
parent f7ca026db0
commit d76998915a
23 changed files with 156 additions and 198 deletions

View File

@@ -9,10 +9,10 @@
#include "xenia/ui/main_window.h"
#include "poly/logging.h"
#include "poly/threading.h"
#include "xenia/gpu/graphics_system.h"
#include "xenia/emulator.h"
#include "xenia/logging.h"
#include "xenia/profiling.h"
namespace xe {
@@ -31,7 +31,7 @@ void MainWindow::Start() {
xe::Profiler::ThreadEnter("Win32 Loop");
if (!Initialize()) {
PFATAL("Failed to initialize main window");
XEFATAL("Failed to initialize main window");
exit(1);
}
@@ -71,7 +71,7 @@ void MainWindow::OnClose() {
loop_.Quit();
// TODO(benvanik): proper exit.
PLOGI("User-initiated death!");
XELOGI("User-initiated death!");
exit(1);
}

View File

@@ -13,7 +13,7 @@
#include <tpcshrd.h>
#include <windowsx.h>
#include "poly/logging.h"
#include "xenia/logging.h"
namespace xe {
namespace ui {
@@ -46,7 +46,7 @@ bool Win32Window::Create() {
wcex.lpszMenuName = nullptr;
wcex.lpszClassName = L"XeniaWindowClass";
if (!RegisterClassEx(&wcex)) {
PLOGE("RegisterClassEx failed");
XELOGE("RegisterClassEx failed");
return false;
}
@@ -61,7 +61,7 @@ bool Win32Window::Create() {
window_style, rc.left, rc.top, rc.right - rc.left,
rc.bottom - rc.top, nullptr, nullptr, hInstance, this);
if (!hwnd_) {
PLOGE("CreateWindow failed");
XELOGE("CreateWindow failed");
return false;
}