Display (Player 1) or (Player 2) consistently

This commit is contained in:
2026-07-16 23:56:20 -04:00
parent b283b69f74
commit d934c843eb
12 changed files with 68 additions and 33 deletions
+3
View File
@@ -946,6 +946,9 @@ pub struct EmulatorClient {
}
impl EmulatorClient {
pub fn has_player_2(&self) -> bool {
self.sim_state(SimId::Player2) != SimState::Uninitialized
}
pub fn sim_state(&self, sim_id: SimId) -> SimState {
self.sim_state[sim_id.to_index()].load(Ordering::Acquire)
}