mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Windows: Show instance counter only with peers.
This commit is contained in:
1 parent
09a3d1f7cb
commit
b0ca635414
5 files changed
+29
-4
No files matched your search
@@ -170,9 +170,7 @@ void WindowsHost::SetWindowTitle(const char *message) {
|
||||
#ifdef _DEBUG
|
||||
winTitle.append(L" (debug)");
|
||||
#endif
|
||||
if (PPSSPP_ID >= 1) {
|
||||
winTitle.append(ConvertUTF8ToWString(StringFromFormat(" (instance: %d)", (int)PPSSPP_ID)));
|
||||
}
|
||||
lastTitle_ = winTitle;
|
||||
|
||||
MainWindow::SetWindowTitle(winTitle.c_str());
|
||||
PostMessage(mainWindow_, MainWindow::WM_USER_WINDOW_TITLE_CHANGED, 0, 0);
|
||||
@@ -194,6 +192,12 @@ void WindowsHost::ShutdownSound() {
|
||||
|
||||
void WindowsHost::UpdateUI() {
|
||||
PostMessage(mainWindow_, MainWindow::WM_USER_UPDATE_UI, 0, 0);
|
||||
|
||||
int peers = GetInstancePeerCount();
|
||||
if (PPSSPP_ID >= 1 && peers != lastNumInstances_) {
|
||||
lastNumInstances_ = peers;
|
||||
PostMessage(mainWindow_, MainWindow::WM_USER_WINDOW_TITLE_CHANGED, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void WindowsHost::UpdateMemView() {
|
||||
|
||||
Reference in new issue
Block a user