[C++] Uplift version to C++20
This commit is contained in:
committed by
Radosław Gliński
parent
a6e3d77504
commit
c3586bc165
@@ -1462,17 +1462,17 @@ void EmulatorWindow::UpdateTitle() {
|
||||
|
||||
// Title information, if available
|
||||
if (emulator()->is_title_open()) {
|
||||
sb.AppendFormat(u8" | [{:08X}", emulator()->title_id());
|
||||
sb.AppendFormat(" | [{:08X}", emulator()->title_id());
|
||||
auto title_version = emulator()->title_version();
|
||||
if (!title_version.empty()) {
|
||||
sb.Append(u8" v");
|
||||
sb.Append(" v");
|
||||
sb.Append(title_version);
|
||||
}
|
||||
sb.Append(u8"]");
|
||||
sb.Append("]");
|
||||
|
||||
auto title_name = emulator()->title_name();
|
||||
if (!title_name.empty()) {
|
||||
sb.Append(u8" ");
|
||||
sb.Append(" ");
|
||||
sb.Append(title_name);
|
||||
}
|
||||
}
|
||||
@@ -1482,28 +1482,28 @@ void EmulatorWindow::UpdateTitle() {
|
||||
if (graphics_system) {
|
||||
auto graphics_name = graphics_system->name();
|
||||
if (!graphics_name.empty()) {
|
||||
sb.Append(u8" <");
|
||||
sb.Append(" <");
|
||||
sb.Append(graphics_name);
|
||||
sb.Append(u8">");
|
||||
sb.Append(">");
|
||||
}
|
||||
}
|
||||
|
||||
if (Clock::guest_time_scalar() != 1.0) {
|
||||
sb.AppendFormat(u8" (@{:.2f}x)", Clock::guest_time_scalar());
|
||||
sb.AppendFormat(" (@{:.2f}x)", Clock::guest_time_scalar());
|
||||
}
|
||||
|
||||
if (initializing_shader_storage_) {
|
||||
sb.Append(u8" (Preloading shaders\u2026)");
|
||||
sb.Append(" (Preloading shaders\u2026)");
|
||||
}
|
||||
|
||||
patcher::Patcher* patcher = emulator()->patcher();
|
||||
if (patcher && patcher->IsAnyPatchApplied()) {
|
||||
sb.Append(u8" [Patches Applied]");
|
||||
sb.Append(" [Patches Applied]");
|
||||
}
|
||||
|
||||
patcher::PluginLoader* pluginloader = emulator()->plugin_loader();
|
||||
if (pluginloader && pluginloader->IsAnyPluginLoaded()) {
|
||||
sb.Append(u8" [Plugins Loaded]");
|
||||
sb.Append(" [Plugins Loaded]");
|
||||
}
|
||||
|
||||
window_->SetTitle(sb.to_string_view());
|
||||
@@ -1873,8 +1873,8 @@ void EmulatorWindow::ToggleGPUSetting(gpu_cvar value) {
|
||||
// Determine if the Xbox Gamebar is enabled via the Windows registry
|
||||
bool EmulatorWindow::IsUseNexusForGameBarEnabled() {
|
||||
#ifdef _WIN32
|
||||
const LPWSTR reg_path = L"SOFTWARE\\Microsoft\\GameBar";
|
||||
const LPWSTR key = L"UseNexusForGameBarEnabled";
|
||||
const LPCWSTR reg_path = L"SOFTWARE\\Microsoft\\GameBar";
|
||||
const LPCWSTR key = L"UseNexusForGameBarEnabled";
|
||||
|
||||
DWORD value = 0;
|
||||
DWORD dataSize = sizeof(value);
|
||||
|
||||
Reference in New Issue
Block a user