Mixer/Module: Save/restore 'active' state.

This commit is contained in:
Jonathan Moore Liles 2010-01-13 01:14:11 -06:00
parent f213158c14
commit 4800ea9824
1 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,7 @@ Module::get ( Log_Entry &e ) const
} }
e.add( ":is_default", is_default() ); e.add( ":is_default", is_default() );
e.add( ":chain", chain() ); e.add( ":chain", chain() );
e.add( ":active", active() );
} }
void void
@ -138,6 +139,13 @@ Module::set ( Log_Entry &e )
{ {
is_default( atoi( v ) ); is_default( atoi( v ) );
} }
else if ( ! ( strcmp( s, ":active" ) ) )
{
if ( atoi( v ) )
activate();
else
deactivate();
}
else if ( ! strcmp( s, ":chain" ) ) else if ( ! strcmp( s, ":chain" ) )
{ {
int i; int i;