GUI: Store the shader name in the config file instead of the ID

This commit is contained in:
Cameron Cawley 2020-01-31 23:11:09 +00:00 committed by rsn8887
parent 7488e17c0a
commit f2db412ba5
12 changed files with 97 additions and 19 deletions

View file

@ -222,7 +222,7 @@ void registerDefaults() {
ConfMan.registerDefault("render_mode", "default");
ConfMan.registerDefault("desired_screen_aspect_ratio", "auto");
ConfMan.registerDefault("stretch_mode", "default");
ConfMan.registerDefault("shader", 0);
ConfMan.registerDefault("shader", "default");
// Sound & Music
ConfMan.registerDefault("music_volume", 192);
@ -591,6 +591,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha
DO_LONG_OPTION("stretch-mode")
END_OPTION
DO_LONG_OPTION("shader")
END_OPTION
DO_OPTION_INT('m', "music-volume")
END_OPTION