mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
Change the semantics of sim_is_active to return a t_bool (which was 98% of how it was used), and added new sim_activate_time to return the time a unit will be activated (the value previously returned). This affected a handful of used of sim_is_active in device implementations which were adjusted to use the sim_activate_time API.
This commit is contained in:
@@ -278,7 +278,7 @@ t_mtrlnt tbc;
|
||||
t_stat r;
|
||||
|
||||
if (cmd == MCM_INIT) { /* init state */
|
||||
if ((t = sim_is_active (uptr + MT_REW)) != 0) { /* rewinding? */
|
||||
if ((t = sim_activate_time (uptr + MT_REW)) != 0) { /* rewinding? */
|
||||
sim_activate (uptr, t); /* retry later */
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user