Include event type number in warning for unhandled LASH events.
This commit is contained in:
parent
f440223d20
commit
c71283fb85
|
@ -68,7 +68,9 @@ Lash::process ( void )
|
||||||
{
|
{
|
||||||
asprintf( &name, "%s/%s", lash_event_get_string( e ), "song.non" );
|
asprintf( &name, "%s/%s", lash_event_get_string( e ), "song.non" );
|
||||||
|
|
||||||
switch ( lash_event_get_type( e ) )
|
const int t = lash_event_get_type ( e );
|
||||||
|
|
||||||
|
switch ( t )
|
||||||
{
|
{
|
||||||
case LASH_Save_File:
|
case LASH_Save_File:
|
||||||
{
|
{
|
||||||
|
@ -97,7 +99,7 @@ Lash::process ( void )
|
||||||
quit();
|
quit();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARNING( "unhandled LASH event" );
|
WARNING( "unhandled LASH event (%d)", t );
|
||||||
}
|
}
|
||||||
|
|
||||||
lash_event_destroy( e );
|
lash_event_destroy( e );
|
||||||
|
|
Loading…
Reference in New Issue