Display (Player 1) or (Player 2) consistently
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user