filename | src/dreamcast.c |
changeset | 27:1ef09a52cd1e |
prev | 26:ad258e3daaa5 |
next | 30:89b30313d757 |
author | nkeynes |
date | Sun Dec 25 01:28:39 2005 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Refactor all the GUI bits out of the main directory (except for a couple lingering temporarily in loader.c Fix a few timeslice issues |
file | annotate | diff | log | raw |
1.1 --- a/src/dreamcast.c Sat Dec 24 08:02:18 2005 +00001.2 +++ b/src/dreamcast.c Sun Dec 25 01:28:39 2005 +00001.3 @@ -1,5 +1,5 @@1.4 /**1.5 - * $Id: dreamcast.c,v 1.9 2005-12-24 08:02:14 nkeynes Exp $1.6 + * $Id: dreamcast.c,v 1.10 2005-12-25 01:28:36 nkeynes Exp $1.7 * Central switchboard for the system. This pulls all the individual modules1.8 * together into some kind of coherent structure. This is also where you'd1.9 * add Naomi support, if I ever get a board to play with...1.10 @@ -111,9 +111,10 @@1.11 }1.12 dreamcast_state = STATE_RUNNING;1.13 while( dreamcast_state == STATE_RUNNING ) {1.14 + int time_to_run = timeslice_length;1.15 for( i=0; i<num_modules; i++ ) {1.16 if( modules[i]->run_time_slice != NULL )1.17 - modules[i]->run_time_slice( timeslice_length );1.18 + time_to_run = modules[i]->run_time_slice( time_to_run );1.19 }1.21 }1.22 @@ -123,7 +124,6 @@1.23 modules[i]->stop();1.24 }1.25 dreamcast_state = STATE_STOPPED;1.26 - update_gui();1.27 }1.29 void dreamcast_stop( void )
.