From: RĂ©mi Denis-Courmont Date: Sat, 23 Jan 2010 18:25:57 +0000 (+0200) Subject: --full-help: do not alter the configuration, only variables X-Git-Tag: 1.1.0-ff~1005 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=220ce67be850cc30eae15e7104023172bfee6bcf;p=vlc --full-help: do not alter the configuration, only variables --- diff --git a/src/libvlc.c b/src/libvlc.c index e8858f100e..536229c8b0 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -474,8 +474,10 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, /* Check for full help option */ else if( var_InheritBool( p_libvlc, "full-help" ) ) { - config_PutInt( p_libvlc, "advanced", 1); - config_PutInt( p_libvlc, "help-verbose", 1); + var_Create( p_libvlc, "advanced", VLC_VAR_BOOL ); + var_SetBool( p_libvlc, "advanced", true ); + var_Create( p_libvlc, "help-verbose", VLC_VAR_BOOL ); + var_SetBool( p_libvlc, "help-verbose", true ); Help( p_libvlc, "full-help" ); b_exit = true; i_ret = VLC_EEXITSUCCESS;