benilla-re systems structs docs

ReceiveNewGameSpeed

function · unassigned · orchestration

Address
0x6c5de0 · 150 bytes, up to 0x6c5e75
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Sets the clock's time scale from the packet's float and logs the old scale and that float, or a malformed packet
Confidence
verified, proof two
Name from
the community database (idb)
Finding
gametime/messages#game-speed-set
Test
gametime::gametime_6c5de0_game_speed_set

Finding: Game speed set in gametime: messages

SMSG_GAMESPEED_SET (0x47), handler 0x6c5de0: the body is one little-endian float, the rate. If the store is not at its end after the read, it writes Malformed message recieved: Id = %d, Len = %d, Read = %d (class 0; the opcode, the store's size with the opcode's two bytes, its cursor), returns 0 and changes nothing. A longer body leaves Read at 6; a short read sets the cursor to size + 1, leaving its output unwritten, so Read = Len + 1. Otherwise 0x643820 stores the rate clamped, the line Gamespeed set from %.03f to %.03f (class 0) prints the scale held and the rate as received, not as clamped, and it returns 1.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.