ui: Migrate xemu_get_os_platform to SDL_GetPlatform

This commit is contained in:
Matt Borgerson
2026-01-21 17:20:14 -07:00
committed by mborgerson
parent 214f1fed0f
commit cc4329da8d
3 changed files with 2 additions and 18 deletions
-16
View File
@@ -30,22 +30,6 @@ const char *xemu_get_os_info(void);
#include <cpuid.h>
#endif
static inline const char *xemu_get_os_platform(void)
{
const char *platform_name;
#if defined(__linux__)
platform_name = "Linux";
#elif defined(_WIN32)
platform_name = "Windows";
#elif defined(__APPLE__)
platform_name = "macOS";
#else
platform_name = "Unknown";
#endif
return platform_name;
}
static inline const char *xemu_get_cpu_info(void)
{
const char *cpu_info = "";
+1 -1
View File
@@ -35,7 +35,7 @@ CompatibilityReporter::CompatibilityReporter()
report.xemu_version = xemu_version;
report.xemu_commit = xemu_commit;
report.xemu_date = xemu_date;
report.os_platform = xemu_get_os_platform();
report.os_platform = SDL_GetPlatform();
report.os_version = xemu_get_os_info();
report.cpu = xemu_get_cpu_info();
dirty = true;
+1 -1
View File
@@ -1624,7 +1624,7 @@ void MainMenuAboutView::Draw()
"CPU: %s\nOS Platform: %s\nOS Version: "
"%s\nManufacturer: %s\n"
"GPU Model: %s\nDriver: %s\nShader: %s",
xemu_get_cpu_info(), xemu_get_os_platform(), xemu_get_os_info(),
xemu_get_cpu_info(), SDL_GetPlatform(), xemu_get_os_info(),
gl_vendor, gl_renderer, gl_version, gl_shader_version);
}