fceux: update to 2.6.6.

This commit is contained in:
tm512 2023-09-24 13:10:04 -07:00 committed by classabbyamp
parent 59f522e20b
commit 3e14f5afac
2 changed files with 44 additions and 2 deletions

View file

@ -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 <intrin.h>
#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)

View file

@ -1,6 +1,6 @@
# Template file for 'fceux' # Template file for 'fceux'
pkgname=fceux pkgname=fceux
version=2.6.5 version=2.6.6
revision=1 revision=1
build_style=cmake build_style=cmake
hostmakedepends="pkg-config qt5-qmake qt5-host-tools" 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" homepage="https://fceux.com/web/home.html"
changelog="https://fceux.com/web/version.html" changelog="https://fceux.com/web/version.html"
distfiles="https://github.com/TASVideos/fceux/archive/v${version}.tar.gz" distfiles="https://github.com/TASVideos/fceux/archive/v${version}.tar.gz"
checksum=78156f3685c55849351178773940871ed607bc4fc37f233fdab58c232e3208fa checksum=0320241d45c6d609f7aeb6f85fdd9019552047206b0864a7f9fddff15b004daa