From 0e96b715b00c388f785940a1b86663f57d196edd Mon Sep 17 00:00:00 2001 From: IoIxD Date: Wed, 15 Apr 2026 22:25:26 -0700 Subject: [PATCH] classic mac os: comment out MwTimeSleep because I realize that wouldn't work either way --- src/abstract/time.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/abstract/time.c b/src/abstract/time.c index cdebc4b..cd09b94 100644 --- a/src/abstract/time.c +++ b/src/abstract/time.c @@ -33,12 +33,12 @@ void MwTimeSleep(int ms) { nanosleep(&ts, NULL); } #elif defined(CLASSIC_MAC_OS) -static TMTask tm; -static int timer; -void timerUpdateFunc(void) { - timer += 1; - PrimeTime((QElemPtr)&tm, 1); -}; +// static TMTask tm; +// static int timer; +// void timerUpdateFunc(void) { +// timer += 1; +// PrimeTime((QElemPtr)&tm, 1); +// }; long MwTimeGetTick(void) { UnsignedWide h; @@ -46,14 +46,14 @@ long MwTimeGetTick(void) { return h.lo; } void MwTimeSleep(int ms) { - tm.tmAddr = NewTimerProc(timerUpdateFunc); - tm.tmWakeUp = 0; - tm.tmReserved = 0; + // tm.tmAddr = NewTimerProc(timerUpdateFunc); + // tm.tmWakeUp = 0; + // tm.tmReserved = 0; - InsTime((QElemPtr)&tm); - PrimeTime((QElemPtr)&tm, 1); + // InsTime((QElemPtr)&tm); + // PrimeTime((QElemPtr)&tm, 1); - DisposeTimerUPP(tm.tmAddr); + // DisposeTimerUPP(tm.tmAddr); } #elif defined(__unix__) long MwTimeGetTick(void) {