Use --config option to load configuration file.

This commit is contained in:
Edênis Freindorfer Azevedo 2019-07-15 09:48:03 -03:00 committed by Rafael Kitover
parent ce11403b4e
commit 2e97b27ffa
1 changed files with 3 additions and 3 deletions
src/sdl

View File

@ -1689,6 +1689,9 @@ int main(int argc, char** argv)
gb_effects_config.surround = false;
gb_effects_config.enabled = false;
ReadOpts(argc, argv);
LoadConfig(); // Parse command line arguments (overrides ini)
inputSetKeymap(PAD_1, KEY_LEFT, ReadPrefHex("Joy0_Left"));
inputSetKeymap(PAD_1, KEY_RIGHT, ReadPrefHex("Joy0_Right"));
inputSetKeymap(PAD_1, KEY_UP, ReadPrefHex("Joy0_Up"));
@ -1750,9 +1753,6 @@ int main(int argc, char** argv)
inputSetMotionKeymap(KEY_UP, ReadPrefHex("Motion_Up"));
inputSetMotionKeymap(KEY_DOWN, ReadPrefHex("Motion_Down"));
LoadConfig(); // Parse command line arguments (overrides ini)
ReadOpts(argc, argv);
if (!sdlCheckDirectory(screenShotDir))
screenShotDir = NULL;
if (!sdlCheckDirectory(saveDir))