change default graphic api values depending on what's enabled

This commit is contained in:
emiyl 2026-04-21 02:59:52 +01:00
parent b6bcb954c4
commit 53fe038e82

View File

@ -430,7 +430,13 @@ struct CemuConfig
ConfigValueBounds<CafeConsoleLanguage> console_language{ CafeConsoleLanguage::EN };
// graphics
#if defined(ENABLE_VULKAN)
ConfigValue<GraphicAPI> graphic_api{ kVulkan };
#elif defined(ENABLE_METAL)
ConfigValue<GraphicAPI> graphic_api{ kMetal };
#elif defined(ENABLE_OPENGL)
ConfigValue<GraphicAPI> graphic_api{ kOpenGL };
#endif
std::array<uint8, 16> legacy_graphic_device_uuid{}; // placeholder option for backwards compatibility with settings from 2.6 and before (renamed to "vkDevice")
std::array<uint8, 16> vk_graphic_device_uuid;
uint64 mtl_graphic_device_uuid{ 0 };