mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
ui: Migrate xemu_get_os_platform to SDL_GetPlatform
This commit is contained in:
committed by
mborgerson
parent
214f1fed0f
commit
cc4329da8d
@@ -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
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user