diff --git a/src/common/ConfigManager.cpp b/src/common/ConfigManager.cpp index 6be93583..18879515 100644 --- a/src/common/ConfigManager.cpp +++ b/src/common/ConfigManager.cpp @@ -898,6 +898,7 @@ int ReadOpts(int argc, char ** argv) preferences = NULL; OpenPreferences(optarg); fclose(f); + LoadConfig(); } break; case 'd': diff --git a/src/sdl/SDL.cpp b/src/sdl/SDL.cpp index 1829a36d..44f00cfc 100644 --- a/src/sdl/SDL.cpp +++ b/src/sdl/SDL.cpp @@ -1538,8 +1538,8 @@ 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) + ReadOpts(argc, argv); inputSetKeymap(PAD_1, KEY_LEFT, ReadPrefHex("Joy0_Left")); inputSetKeymap(PAD_1, KEY_RIGHT, ReadPrefHex("Joy0_Right"));