102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
timer.c
Go to the documentation of this file.
1/* Recovered game implementation; original addresses identify provenance. */
6
7// Original pcdogs.exe: 0x405c40
8// Forwards to the elapsed-game-tick routine, returning milliseconds since its lazily initialized start tick.
10{
11 /* tailcall */
13}
14
15// Original pcdogs.exe: 0x43cef0
16// The x87 product stays in ST(0) until the caller stores it.
17long double Timer_GetGameTime(void)
18{
19 return (long double)GetTickCount() * 0.001f;
20}
21
22// Original pcdogs.exe: 0x444fc0
23// Lazily initializes the game-start tick and returns unsigned millisecond subtraction, preserving counter wraparound.
25{
27 g_gameStartTime = timeGetTime();
28
29 return timeGetTime() - g_gameStartTime;
30}
#define g_gameStartTime
Definition globals.h:23
#define TIMER_UNINITIALIZED_TICK
Definition constants.h:8
uint32_t Timer_GetElapsedTickCountThunk()
Definition timer.c:9
uint32_t Timer_GetElapsedTickCount()
Definition timer.c:24
long double Timer_GetGameTime(void)
Definition timer.c:17