Add a warning message if XDG_CONFIG_HOME is not found.

This commit is contained in:
Themaister 2011-02-07 15:27:07 +01:00
parent 672824539c
commit 2137ca8e3f

View File

@ -201,6 +201,9 @@ static void parse_config_file(void)
conf = config_file_new("ssnes.cfg");
#else
const char *xdg = getenv("XDG_CONFIG_HOME");
if (!xdg)
SSNES_WARN("XDG_CONFIG_HOME is not defined. Will look for config in $HOME/.ssnesrc ...\n");
const char *home = getenv("HOME");
if (xdg)
{