mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
Add support for choosing network service (incl Pretendo+Custom) (#302)
This commit is contained in:
parent
52cc7c5996
commit
b07e9efba4
19 changed files with 345 additions and 22 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "gui/debugger/DebuggerWindow2.h"
|
||||
#include "Cafe/HW/Latte/Core/Latte.h"
|
||||
#include "config/ActiveSettings.h"
|
||||
#include "config/NetworkSettings.h"
|
||||
#include "config/CemuConfig.h"
|
||||
#include "Cafe/HW/Latte/Renderer/Renderer.h"
|
||||
#include "Cafe/CafeSystem.h"
|
||||
|
@ -96,9 +97,18 @@ void gui_updateWindowTitles(bool isIdle, bool isLoading, double fps)
|
|||
const uint64 titleId = CafeSystem::GetForegroundTitleId();
|
||||
windowText.append(fmt::format(" - FPS: {:.2f} {} {} [TitleId: {:08x}-{:08x}]", (double)fps, renderer, graphicMode, (uint32)(titleId >> 32), (uint32)(titleId & 0xFFFFFFFF)));
|
||||
|
||||
if (ActiveSettings::IsOnlineEnabled())
|
||||
if (ActiveSettings::IsOnlineEnabled()){
|
||||
windowText.append(" [Online]");
|
||||
|
||||
if (ActiveSettings::GetNetworkService() == NetworkService::Nintendo) {
|
||||
windowText.append("[Nintendo]");
|
||||
}
|
||||
else if (ActiveSettings::GetNetworkService() == NetworkService::Pretendo) {
|
||||
windowText.append("[Pretendo]");
|
||||
}
|
||||
else if (ActiveSettings::GetNetworkService() == NetworkService::Custom) {
|
||||
windowText.append("[" + GetNetworkConfig().networkname.GetValue() + "]");
|
||||
}
|
||||
}
|
||||
windowText.append(" ");
|
||||
windowText.append(CafeSystem::GetForegroundTitleName());
|
||||
// append region
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue