Minor cleanup.
This commit is contained in:
parent
825bb4c3e7
commit
28bc3ff1c6
|
@ -65,28 +65,24 @@ LASH_Client::poll ( void )
|
||||||
switch ( lash_event_get_type( e ) )
|
switch ( lash_event_get_type( e ) )
|
||||||
{
|
{
|
||||||
case LASH_Save_File:
|
case LASH_Save_File:
|
||||||
{
|
|
||||||
handle_save_file( name );
|
handle_save_file( name );
|
||||||
|
|
||||||
lash_send_event( _client, lash_event_new_with_type( LASH_Save_File ) );
|
lash_send_event( _client, lash_event_new_with_type( LASH_Save_File ) );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
|
||||||
case LASH_Restore_File:
|
case LASH_Restore_File:
|
||||||
{
|
|
||||||
if ( ! handle_restore_file( name ) )
|
if ( ! handle_restore_file( name ) )
|
||||||
/* FIXME: should we tell lash that we couldn't load the song? */;
|
/* FIXME: should we tell lash that we couldn't load the song? */;
|
||||||
|
|
||||||
lash_send_event( _client, lash_event_new_with_type( LASH_Restore_File ) );
|
lash_send_event( _client, lash_event_new_with_type( LASH_Restore_File ) );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case LASH_Quit:
|
case LASH_Quit:
|
||||||
handle_quit();
|
handle_quit();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARNING( "unhandled LASH event" );
|
WARNING( "unhandled LASH event" );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
lash_event_destroy( e );
|
lash_event_destroy( e );
|
||||||
|
|
Loading…
Reference in New Issue