Skip to main content

ss_player_missing_count

Function ss_player_missing_count 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_missing_count( handle: *mut SsPlayer, ) -> u32
Expand description

How many things the player’s last load could not get.

ss_player_load reports an error only when the .ssab itself is unreadable — one missing atlas must not cost you the character — so this is how a caller tells a complete load from one that played anyway:

if (ss_player_load(player, path) != SS_OK) {
// the .ssab itself
} else if (ss_player_missing_count(player) > 0) {
// it plays, but something is a silhouette or absent
}

Describes the most recent load, not the player’s history. Zero for a null or destroyed handle, which is indistinguishable from success — check the load’s own return value for that.

§Safety

handle must be a live handle or null.