MCPcopy Create free account
hub / github.com/decaf-emu/decaf-emu / IOS_StopTimer

Function IOS_StopTimer

src/libdecaf/src/ios/kernel/ios_kernel_timer.cpp:165–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165Error
166IOS_StopTimer(TimerId timerId)
167{
168 phys_ptr<Timer> timer;
169 auto error = internal::getTimer(timerId, &timer);
170 if (error < Error::OK) {
171 return error;
172 }
173
174 if (timer->state == TimerState::Running) {
175 error = internal::stopTimer(timer);
176 } else {
177 timer->state = TimerState::Stopped;
178 error = Error::Expired;
179 }
180
181 return error;
182}
183
184Error
185IOS_RestartTimer(TimerId timerId,

Callers 1

Calls 2

getTimerFunction · 0.85
stopTimerFunction · 0.85

Tested by

no test coverage detected