Skip to main content

Module probe

Module probe 

Source
Expand description

Game-specific install detection hooks.

modde-core cannot reference modde-games (would create a dependency cycle), so the analyzer takes an InstallProbe that the caller constructs from whatever game plugin context it has. modde-games provides a game_probe(plugin) helper that wraps a &'static dyn GamePlugin into a probe.

The probe owns its closures (as Box<dyn Fn>), so analysis does not leak memory and the probe can be passed across tasks.

Structsยง

InstallProbe
Callbacks the analyzer uses to delegate to a game plugin.