Osiris_TimerExists Purpose: Returns true if the timer is valid
| 2536 | // Purpose: |
| 2537 | // Returns true if the timer is valid |
| 2538 | uint8_t Osiris_TimerExists(int handle) { |
| 2539 | int id = GET_SLOT(handle); |
| 2540 | |
| 2541 | if (id < 0 || id >= MAX_OSIRIS_TIMERS) |
| 2542 | return false; |
| 2543 | |
| 2544 | if (!(OsirisTimers[id].flags & OITF_USED)) |
| 2545 | return false; |
| 2546 | |
| 2547 | if (OsirisTimers[id].handle != handle) // not the same timer |
| 2548 | return false; |
| 2549 | |
| 2550 | return true; |
| 2551 | } |
| 2552 | |
| 2553 | // Osiris_TimerTimeRemaining |
| 2554 | // Purpose: |
nothing calls this directly
no test coverage detected