mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
Code enhancement
No real need for an extra pointer here (device_scheduler * scheduler), only makes the code more cryptic. Removed the assignment step by initializing the object with the value intended.
This commit is contained in:
parent
ec1ee61dae
commit
3bb0fb2df7
@ -1351,12 +1351,12 @@ void system_time::full_time::set(struct tm &t)
|
||||
|
||||
static running_machine * jsmess_machine;
|
||||
|
||||
void js_main_loop() {
|
||||
device_scheduler * scheduler;
|
||||
scheduler = &(jsmess_machine->scheduler());
|
||||
attotime stoptime = scheduler->time() + attotime(0,HZ_TO_ATTOSECONDS(60));
|
||||
while (scheduler->time() < stoptime) {
|
||||
scheduler->timeslice();
|
||||
void js_main_loop()
|
||||
{
|
||||
attotime stoptime(jsmess_machine->scheduler().time() + attotime(0,HZ_TO_ATTOSECONDS(60)));
|
||||
while (jsmess_machine->scheduler().time()) < stoptime)
|
||||
{
|
||||
jsmess_machine->scheduler().timeslice();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user