1
0
Fork 0
forked from Miroirs/x49gp

optmization

This commit is contained in:
Gwenhael Le Moine 2024-11-14 16:03:13 +01:00
parent 6ee544120a
commit bf8ddd52c6
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -249,10 +249,8 @@ void config_init( char* progname, int argc, char* argv[] )
} }
} }
if ( opt.datadir == NULL ) { if ( opt.datadir == NULL )
const char* user_config_dir = g_get_user_config_dir(); opt.datadir = g_build_filename( g_get_user_config_dir(), progname, NULL );
opt.datadir = g_build_filename( user_config_dir, progname, NULL );
}
const char* config_lua_filename = g_build_filename( opt.datadir, "config.lua", NULL ); const char* config_lua_filename = g_build_filename( opt.datadir, "config.lua", NULL );