[App] Put DEBUG/CHECKED into the window title when appropriate.

This commit is contained in:
gibbed 2018-05-26 06:29:08 -05:00
parent 73d75c56e1
commit 926464cb90
1 changed files with 9 additions and 1 deletions

View File

@ -40,7 +40,15 @@ EmulatorWindow::EmulatorWindow(Emulator* emulator)
: emulator_(emulator),
loop_(ui::Loop::Create()),
window_(ui::Window::Create(loop_.get(), kBaseTitle)) {
base_title_ = kBaseTitle + L" (" + xe::to_wstring(XE_BUILD_BRANCH) + L"/" +
base_title_ = kBaseTitle +
#ifdef DEBUG
#if _NO_DEBUG_HEAP == 1
L" DEBUG" +
#else
L" CHECKED" +
#endif
#endif
L" (" + xe::to_wstring(XE_BUILD_BRANCH) + L"/" +
xe::to_wstring(XE_BUILD_COMMIT_SHORT) + L"/" +
xe::to_wstring(XE_BUILD_DATE) + L")";
}