CommandLineParse: Don't ignore video_backend/audio_emulation when not using -C
This commit is contained in:
parent
a825e7e09f
commit
0dbb58112a
|
@ -114,13 +114,13 @@ std::unique_ptr<optparse::OptionParser> CreateParser(ParserOptions options)
|
||||||
|
|
||||||
static void AddConfigLayer(const optparse::Values& options)
|
static void AddConfigLayer(const optparse::Values& options)
|
||||||
{
|
{
|
||||||
|
std::list<std::string> config_args;
|
||||||
if (options.is_set_by_user("config"))
|
if (options.is_set_by_user("config"))
|
||||||
{
|
config_args = options.all("config");
|
||||||
const std::list<std::string>& config_args = options.all("config");
|
|
||||||
Config::AddLayer(std::make_unique<CommandLineConfigLayerLoader>(
|
Config::AddLayer(std::make_unique<CommandLineConfigLayerLoader>(
|
||||||
config_args, static_cast<const char*>(options.get("video_backend")),
|
std::move(config_args), static_cast<const char*>(options.get("video_backend")),
|
||||||
static_cast<const char*>(options.get("audio_emulation"))));
|
static_cast<const char*>(options.get("audio_emulation"))));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
optparse::Values& ParseArguments(optparse::OptionParser* parser, int argc, char** argv)
|
optparse::Values& ParseArguments(optparse::OptionParser* parser, int argc, char** argv)
|
||||||
|
|
Loading…
Reference in New Issue