void DebugView_UpdateWindowText() { CProcessor* pDebugPU = (m_okDebugProcessor) ? g_pBoard->GetCPU() : g_pBoard->GetPPU(); ASSERT(pDebugPU != NULL); LPCTSTR sProcName = pDebugPU->GetName(); TCHAR buffer[64]; _stprintf_s(buffer, 64, _T("Debug - %s"), sProcName); ::SetWindowText(g_hwndDebug, buffer); }
void DisasmView_UpdateWindowText() { CProcessor* pDisasmPU = (m_okDisasmProcessor) ? g_pBoard->GetCPU() : g_pBoard->GetPPU(); ASSERT(pDisasmPU != NULL); LPCTSTR sProcName = pDisasmPU->GetName(); TCHAR buffer[64]; if (m_okDisasmSubtitles) _stprintf_s(buffer, 64, _T("Disassemble - %s - Subtitles"), sProcName); else _stprintf_s(buffer, 64, _T("Disassemble - %s"), sProcName); ::SetWindowText(g_hwndDisasm, buffer); }