From: <pa...@us...> - 2003-10-04 22:25:50
|
Update of /cvsroot/fuse-emulator/fuse In directory sc8-pr-cvs1:/tmp/cvs-serv16496 Modified Files: tape.c Log Message: Add very simple statusbar showing tape motor status. Index: tape.c =================================================================== RCS file: /cvsroot/fuse-emulator/fuse/tape.c,v retrieving revision 1.94 retrieving revision 1.95 diff -C2 -d -r1.94 -r1.95 *** tape.c 4 Oct 2003 21:53:08 -0000 1.94 --- tape.c 4 Oct 2003 22:25:46 -0000 1.95 *************** *** 74,77 **** --- 74,79 ---- if( !tape ) return error; + /* Don't call tape_stop() here as the UI hasn't been initialised yet, + so we can't update the statusbar */ tape_playing = 0; tape_microphone = 0; *************** *** 482,485 **** --- 484,490 ---- tape_microphone = 0; + /* Update the status bar */ + ui_statusbar_tape( 1 ); + /* Timex machines have no loading noise */ if( ( !( machine_current->timex ) ) && settings_current.sound_load ) *************** *** 503,506 **** --- 508,512 ---- { tape_playing = 0; + ui_statusbar_tape( 0 ); return 0; } *************** *** 554,558 **** libspectrum_tape_block_type( block ) == LIBSPECTRUM_TAPE_BLOCK_ROM ) { ! tape_playing = 0; return 0; } --- 560,564 ---- libspectrum_tape_block_type( block ) == LIBSPECTRUM_TAPE_BLOCK_ROM ) { ! error = tape_stop(); if( error ) return error; return 0; } |