Skip to content
Permalink
Browse files

Use --config option to load configuration file.

  • Loading branch information
denisfa authored and rkitover committed Jul 15, 2019
1 parent ce11403 commit 2e97b27ffa97b575d9e9438ae80fbee9bfbaf6e4
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/sdl/SDL.cpp
@@ -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))

0 comments on commit 2e97b27

Please sign in to comment.
You can’t perform that action at this time.