diff --git a/src/xenia/app/xenia_main.cc b/src/xenia/app/xenia_main.cc index cc35b9ec3..9f998d945 100644 --- a/src/xenia/app/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -141,40 +141,27 @@ class Factory { }; std::unique_ptr CreateAudioSystem(cpu::Processor* processor) { - using NopAS = apu::nop::NopAudioSystem; - using XAudio2AS = apu::xaudio2::XAudio2AudioSystem; - using Factory = Factory; - - Factory factory; + Factory factory; #if XE_PLATFORM_WIN32 - factory.Add("xaudio2"); + factory.Add("xaudio2"); #endif // XE_PLATFORM_WIN32 - factory.Add("nop"); - + factory.Add("nop"); return factory.Create(cvars::apu, processor); } std::unique_ptr CreateGraphicsSystem() { - using NullGS = gpu::null::NullGraphicsSystem; - using D3D12GS = gpu::d3d12::D3D12GraphicsSystem; - using VulkanGS = gpu::vulkan::VulkanGraphicsSystem; - using Factory = Factory; - - Factory factory; + Factory factory; #if XE_PLATFORM_WIN32 - factory.Add("d3d12"); + factory.Add("d3d12"); #endif // XE_PLATFORM_WIN32 - factory.Add("vulkan"); - factory.Add("null"); - + factory.Add("vulkan"); + factory.Add("null"); return factory.Create(cvars::gpu); } std::vector> CreateInputDrivers( ui::Window* window) { - using Factory = Factory; - - Factory factory; + Factory factory; #if XE_PLATFORM_WIN32 factory.Add("winkey", xe::hid::winkey::Create); factory.Add("xinput", xe::hid::xinput::Create);