Skip to content
Permalink
Browse files

CommandLineParse: Don't ignore video_backend/audio_emulation when not…

… using -C
  • Loading branch information...
JosJuice committed Oct 28, 2019
1 parent a825e7e commit 0dbb58112a2e85d558f7c455c5140e073c5d49df
Showing with 6 additions and 6 deletions.
  1. +6 −6 Source/Core/UICommon/CommandLineParse.cpp
@@ -114,13 +114,13 @@ std::unique_ptr<optparse::OptionParser> CreateParser(ParserOptions options)

static void AddConfigLayer(const optparse::Values& options)
{
std::list<std::string> config_args;
if (options.is_set_by_user("config"))
{
const std::list<std::string>& config_args = options.all("config");
Config::AddLayer(std::make_unique<CommandLineConfigLayerLoader>(
config_args, static_cast<const char*>(options.get("video_backend")),
static_cast<const char*>(options.get("audio_emulation"))));
}
config_args = options.all("config");

Config::AddLayer(std::make_unique<CommandLineConfigLayerLoader>(
std::move(config_args), static_cast<const char*>(options.get("video_backend")),
static_cast<const char*>(options.get("audio_emulation"))));
}

optparse::Values& ParseArguments(optparse::OptionParser* parser, int argc, char** argv)

0 comments on commit 0dbb581

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