classic mac os: comment out MwTimeSleep because I realize that wouldn't work either way

This commit is contained in:
IoIxD 2026-04-15 22:25:26 -07:00
commit 0e96b715b0

View file

@ -33,12 +33,12 @@ void MwTimeSleep(int ms) {
nanosleep(&ts, NULL); nanosleep(&ts, NULL);
} }
#elif defined(CLASSIC_MAC_OS) #elif defined(CLASSIC_MAC_OS)
static TMTask tm; // static TMTask tm;
static int timer; // static int timer;
void timerUpdateFunc(void) { // void timerUpdateFunc(void) {
timer += 1; // timer += 1;
PrimeTime((QElemPtr)&tm, 1); // PrimeTime((QElemPtr)&tm, 1);
}; // };
long MwTimeGetTick(void) { long MwTimeGetTick(void) {
UnsignedWide h; UnsignedWide h;
@ -46,14 +46,14 @@ long MwTimeGetTick(void) {
return h.lo; return h.lo;
} }
void MwTimeSleep(int ms) { void MwTimeSleep(int ms) {
tm.tmAddr = NewTimerProc(timerUpdateFunc); // tm.tmAddr = NewTimerProc(timerUpdateFunc);
tm.tmWakeUp = 0; // tm.tmWakeUp = 0;
tm.tmReserved = 0; // tm.tmReserved = 0;
InsTime((QElemPtr)&tm); // InsTime((QElemPtr)&tm);
PrimeTime((QElemPtr)&tm, 1); // PrimeTime((QElemPtr)&tm, 1);
DisposeTimerUPP(tm.tmAddr); // DisposeTimerUPP(tm.tmAddr);
} }
#elif defined(__unix__) #elif defined(__unix__)
long MwTimeGetTick(void) { long MwTimeGetTick(void) {