fix redundant .config/ in default value of configDir

This commit is contained in:
Gwenhael Le Moine 2023-10-18 17:28:44 +02:00
parent 91e9942d7d
commit 50896cf4b7
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -291,9 +291,9 @@ int parse_args( int argc, char* argv[] )
" -v --version show version\n"
" --print-config print configuration as config file\n"
" -c --config=<path> use <path> as x48ng's config file (default: "
"~/.config/x48ng/config.lua)\n"
"$XDG_CONFIG_HOME/x48ng/config.lua)\n"
" --config-dir=<path> use <path> as x48ng's home (default: "
"~/.config/x48ng/)\n"
"$XDG_CONFIG_HOME/x48ng/)\n"
" --rom=<filename> use <filename> (absolute or relative to "
"<config-dir>) as ROM (default: rom)\n"
" --ram=<filename> use <filename> (absolute or relative to "
@ -437,7 +437,7 @@ int parse_args( int argc, char* argv[] )
}
lua_getglobal( config_lua_values, "config_dir" );
configDir = ( char* )luaL_optstring( config_lua_values, -1, ".config/x48ng" );
configDir = ( char* )luaL_optstring( config_lua_values, -1, "x48ng" );
lua_getglobal( config_lua_values, "rom" );
romFileName = ( char* )luaL_optstring( config_lua_values, -1, "rom" );