1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-04 21:28:54 +03:00

Fix the filename for the user-specified input conf file.

This commit is contained in:
Paul Cercueil 2012-01-23 12:29:58 +01:00
parent 4935baedec
commit a0b9fc026b

View File

@ -427,12 +427,12 @@ GMenu2X::GMenu2X()
/* If a user-specified input.conf file exists, we load it;
* otherwise, we load the default one. */
const char *input_file = (getHome() + "/input.conf").c_str();
if (fileExists(input_file)) {
DEBUG("Loading user-specific input.conf file: %s.\n", input_file);
string input_file = getHome() + "/input.conf";
if (fileExists(input_file.c_str())) {
DEBUG("Loading user-specific input.conf file: %s.\n", input_file.c_str());
} else {
input_file = GMENU2X_SYSTEM_DIR "/input.conf";
DEBUG("Loading system input.conf file: %s.\n", input_file);
DEBUG("Loading system input.conf file: %s.\n", input_file.c_str());
}
input.init(input_file);