From 53fe038e82d2622f0383b3e81c6acfdf0bf48f2e Mon Sep 17 00:00:00 2001 From: emiyl Date: Tue, 21 Apr 2026 02:59:52 +0100 Subject: [PATCH] change default graphic api values depending on what's enabled --- src/config/CemuConfig.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config/CemuConfig.h b/src/config/CemuConfig.h index dafad429..94f6c4ed 100644 --- a/src/config/CemuConfig.h +++ b/src/config/CemuConfig.h @@ -430,7 +430,13 @@ struct CemuConfig ConfigValueBounds console_language{ CafeConsoleLanguage::EN }; // graphics +#if defined(ENABLE_VULKAN) ConfigValue graphic_api{ kVulkan }; +#elif defined(ENABLE_METAL) + ConfigValue graphic_api{ kMetal }; +#elif defined(ENABLE_OPENGL) + ConfigValue graphic_api{ kOpenGL }; +#endif std::array legacy_graphic_device_uuid{}; // placeholder option for backwards compatibility with settings from 2.6 and before (renamed to "vkDevice") std::array vk_graphic_device_uuid; uint64 mtl_graphic_device_uuid{ 0 };