Add the currently active graphics system to the window title.
This commit is contained in:
parent
8b5eb1cd38
commit
082c767fba
|
@ -392,6 +392,12 @@ void EmulatorWindow::UpdateTitle() {
|
||||||
title += L" - " + game_title;
|
title += L" - " + game_title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto graphics_system = emulator()->graphics_system();
|
||||||
|
if (graphics_system) {
|
||||||
|
auto graphics_name = graphics_system->name();
|
||||||
|
title += L" <" + graphics_name + L">";
|
||||||
|
}
|
||||||
|
|
||||||
if (Clock::guest_time_scalar() != 1.0) {
|
if (Clock::guest_time_scalar() != 1.0) {
|
||||||
title += xe::format_string(L" (@%.2fx)", Clock::guest_time_scalar());
|
title += xe::format_string(L" (@%.2fx)", Clock::guest_time_scalar());
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,8 @@ class GL4GraphicsSystem : public GraphicsSystem {
|
||||||
GL4GraphicsSystem();
|
GL4GraphicsSystem();
|
||||||
~GL4GraphicsSystem() override;
|
~GL4GraphicsSystem() override;
|
||||||
|
|
||||||
|
std::wstring name() const override { return L"GL4"; }
|
||||||
|
|
||||||
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
||||||
ui::Window* target_window) override;
|
ui::Window* target_window) override;
|
||||||
void Shutdown() override;
|
void Shutdown() override;
|
||||||
|
|
|
@ -34,6 +34,8 @@ class GraphicsSystem {
|
||||||
public:
|
public:
|
||||||
virtual ~GraphicsSystem();
|
virtual ~GraphicsSystem();
|
||||||
|
|
||||||
|
virtual std::wstring name() const = 0;
|
||||||
|
|
||||||
Memory* memory() const { return memory_; }
|
Memory* memory() const { return memory_; }
|
||||||
cpu::Processor* processor() const { return processor_; }
|
cpu::Processor* processor() const { return processor_; }
|
||||||
kernel::KernelState* kernel_state() const { return kernel_state_; }
|
kernel::KernelState* kernel_state() const { return kernel_state_; }
|
||||||
|
|
|
@ -24,6 +24,8 @@ class NullGraphicsSystem : public GraphicsSystem {
|
||||||
NullGraphicsSystem();
|
NullGraphicsSystem();
|
||||||
~NullGraphicsSystem() override;
|
~NullGraphicsSystem() override;
|
||||||
|
|
||||||
|
std::wstring name() const override { return L"null"; }
|
||||||
|
|
||||||
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
||||||
ui::Window* target_window) override;
|
ui::Window* target_window) override;
|
||||||
void Shutdown() override;
|
void Shutdown() override;
|
||||||
|
|
|
@ -24,6 +24,8 @@ class VulkanGraphicsSystem : public GraphicsSystem {
|
||||||
VulkanGraphicsSystem();
|
VulkanGraphicsSystem();
|
||||||
~VulkanGraphicsSystem() override;
|
~VulkanGraphicsSystem() override;
|
||||||
|
|
||||||
|
std::wstring name() const override { return L"Vulkan"; }
|
||||||
|
|
||||||
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
||||||
ui::Window* target_window) override;
|
ui::Window* target_window) override;
|
||||||
void Shutdown() override;
|
void Shutdown() override;
|
||||||
|
|
Loading…
Reference in New Issue