From 738d54a7a7c4e02468a1a028d2ee7c63cbb4f8d6 Mon Sep 17 00:00:00 2001 From: tm512 Date: Sun, 24 Sep 2023 13:10:04 -0700 Subject: [PATCH] fceux: update to 2.6.6. --- .../patches/2.6.6-timestamp-nonx86.patch | 42 +++++++++++++++++++ srcpkgs/fceux/template | 4 +- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch diff --git a/srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch b/srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch new file mode 100644 index 0000000000000..7096d5934851c --- /dev/null +++ b/srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch @@ -0,0 +1,42 @@ +diff --git a/src/utils/timeStamp.cpp b/src/utils/timeStamp.cpp +index f62d019f..efb45aac 100644 +--- a/src/utils/timeStamp.cpp ++++ b/src/utils/timeStamp.cpp +@@ -14,6 +14,7 @@ + //------------------------------------------------------------------------- + //---- Time Stamp Record + //------------------------------------------------------------------------- ++#ifdef __FCEU_X86_TSC_ENABLE + #if defined(WIN32) + #include + #pragma intrinsic(__rdtsc) +@@ -25,6 +26,7 @@ static uint64_t rdtsc() + { + return __rdtsc(); + } ++#endif + + namespace FCEU + { +@@ -36,12 +38,15 @@ uint64_t timeStampRecord::qpcFreq = 0; + + void timeStampRecord::readNew(void) + { +-#if defined(__linux__) || defined(__APPLE__) || defined(__unix__) +- clock_gettime( CLOCK_REALTIME, &ts ); +-#else +- QueryPerformanceCounter((LARGE_INTEGER*)&ts); +-#endif +- tsc = rdtsc(); ++ #ifdef __FCEU_X86_TSC_ENABLE ++ tsc = rdtsc(); ++ #endif ++ ++ #if defined(__linux__) || defined(__APPLE__) || defined(__unix__) ++ clock_gettime( CLOCK_REALTIME, &ts ); ++ #else ++ QueryPerformanceCounter((LARGE_INTEGER*)&ts); ++ #endif + } + #if defined(WIN32) + void timeStampRecord::qpcCalibrate(void) diff --git a/srcpkgs/fceux/template b/srcpkgs/fceux/template index 7408811484000..8cde308e06a2c 100644 --- a/srcpkgs/fceux/template +++ b/srcpkgs/fceux/template @@ -1,6 +1,6 @@ # Template file for 'fceux' pkgname=fceux -version=2.6.5 +version=2.6.6 revision=1 build_style=cmake hostmakedepends="pkg-config qt5-qmake qt5-host-tools" @@ -11,4 +11,4 @@ license="GPL-2.0-or-later" homepage="https://fceux.com/web/home.html" changelog="https://fceux.com/web/version.html" distfiles="https://github.com/TASVideos/fceux/archive/v${version}.tar.gz" -checksum=78156f3685c55849351178773940871ed607bc4fc37f233fdab58c232e3208fa +checksum=0320241d45c6d609f7aeb6f85fdd9019552047206b0864a7f9fddff15b004daa