mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
Use --config option to load configuration file.
This commit is contained in:
committed by
Rafael Kitover
parent
ce11403b4e
commit
2e97b27ffa
@@ -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))
|
||||
|
Reference in New Issue
Block a user