From c2d6cbb076ade911ef923ff95d90ec979abbc937 Mon Sep 17 00:00:00 2001 From: Ganael LAPLANCHE Date: Wed, 4 Dec 2024 08:44:00 +0100 Subject: emulators/duckstation: Rename to fbsd-duckstation Follow developer's will (expressed in private) to emphasize our port includes local patches and does not reflect the exact version of the original software. --- .../files/patch-src-util-platform_misc_unix.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp (limited to 'emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp') diff --git a/emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp b/emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp new file mode 100644 index 000000000000..68e543b0fdaa --- /dev/null +++ b/emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp @@ -0,0 +1,20 @@ +--- src/util/platform_misc_unix.cpp.orig 2024-06-14 05:59:32 UTC ++++ src/util/platform_misc_unix.cpp +@@ -134,6 +134,7 @@ size_t PlatformMisc::GetRuntimeCacheLineSize() + + size_t PlatformMisc::GetRuntimeCacheLineSize() + { ++#if defined(__linux__) + int l1i = sysconf(_SC_LEVEL1_DCACHE_LINESIZE); + int l1d = sysconf(_SC_LEVEL1_ICACHE_LINESIZE); + int res = (l1i > l1d) ? l1i : l1d; +@@ -152,6 +153,9 @@ size_t PlatformMisc::GetRuntimeCacheLineSize() + } + + return (res > 0) ? static_cast(res) : 0; ++#else ++ return HOST_CACHE_LINE_SIZE; ++#endif + } + + bool PlatformMisc::PlaySoundAsync(const char* path) -- cgit v1.2.3