mirror of https://github.com/mgba-emu/mgba.git
Qt: Show multiplayer numbers in window title
This commit is contained in:
parent
41bbee1efd
commit
470538d4db
2
CHANGES
2
CHANGES
|
@ -17,6 +17,8 @@ Bugfixes:
|
||||||
- GBA Memory: Ensure changing the timing of a DMA reschedules it
|
- GBA Memory: Ensure changing the timing of a DMA reschedules it
|
||||||
- Qt: Fix window not regaining focus after exiting savestate window
|
- Qt: Fix window not regaining focus after exiting savestate window
|
||||||
- Qt: Fix regression where video would not record if the game had already started
|
- Qt: Fix regression where video would not record if the game had already started
|
||||||
|
Misc:
|
||||||
|
- Qt: Show multiplayer numbers in window title
|
||||||
|
|
||||||
0.2.0: (2015-04-03)
|
0.2.0: (2015-04-03)
|
||||||
Features:
|
Features:
|
||||||
|
|
|
@ -519,8 +519,14 @@ void Window::recordFrame() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::showFPS() {
|
void Window::showFPS() {
|
||||||
char title[13] = { '\0' };
|
char gameTitle[13] = { '\0' };
|
||||||
GBAGetGameTitle(m_controller->thread()->gba, title);
|
GBAGetGameTitle(m_controller->thread()->gba, gameTitle);
|
||||||
|
|
||||||
|
QString title(gameTitle);
|
||||||
|
std::shared_ptr<MultiplayerController> multiplayer = m_controller->multiplayerController();
|
||||||
|
if (multiplayer && multiplayer->attached() > 1) {
|
||||||
|
title += tr(" - Player %1 of %2").arg(m_playerId + 1).arg(multiplayer->attached());
|
||||||
|
}
|
||||||
if (m_frameList.isEmpty()) {
|
if (m_frameList.isEmpty()) {
|
||||||
setWindowTitle(tr(PROJECT_NAME " - %1").arg(title));
|
setWindowTitle(tr(PROJECT_NAME " - %1").arg(title));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue