mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Qt: rename pad profiles to config files
This commit is contained in:
parent
cb8aa21fb1
commit
f554b444c0
9 changed files with 103 additions and 103 deletions
|
@ -88,7 +88,7 @@ static atomic_t<bool> s_headless = false;
|
|||
static atomic_t<bool> s_no_gui = false;
|
||||
static atomic_t<char*> s_argv0;
|
||||
|
||||
std::string g_pad_profile_override;
|
||||
std::string g_input_config_override;
|
||||
|
||||
extern thread_local std::string(*g_tls_log_prefix)();
|
||||
extern thread_local std::string_view g_tls_serialize_name;
|
||||
|
@ -291,7 +291,7 @@ constexpr auto arg_styles = "styles";
|
|||
constexpr auto arg_style = "style";
|
||||
constexpr auto arg_stylesheet = "stylesheet";
|
||||
constexpr auto arg_config = "config";
|
||||
constexpr auto arg_pad_profile = "pad-profile"; // only useful with no-gui
|
||||
constexpr auto arg_input_config = "input-config"; // only useful with no-gui
|
||||
constexpr auto arg_q_debug = "qDebug";
|
||||
constexpr auto arg_error = "error";
|
||||
constexpr auto arg_updating = "updating";
|
||||
|
@ -652,8 +652,8 @@ int main(int argc, char** argv)
|
|||
parser.addOption(QCommandLineOption(arg_stylesheet, "Loads a custom stylesheet.", "path", ""));
|
||||
const QCommandLineOption config_option(arg_config, "Forces the emulator to use this configuration file for CLI-booted game.", "path", "");
|
||||
parser.addOption(config_option);
|
||||
const QCommandLineOption pad_profile_option(arg_pad_profile, "Forces the emulator to use this pad profile file for CLI-booted game.", "name", "");
|
||||
parser.addOption(pad_profile_option);
|
||||
const QCommandLineOption input_config_option(arg_input_config, "Forces the emulator to use this input config file for CLI-booted game.", "name", "");
|
||||
parser.addOption(input_config_option);
|
||||
const QCommandLineOption installfw_option(arg_installfw, "Forces the emulator to install this firmware file.", "path", "");
|
||||
parser.addOption(installfw_option);
|
||||
const QCommandLineOption installpkg_option(arg_installpkg, "Forces the emulator to install this pkg file.", "path", "");
|
||||
|
@ -1289,18 +1289,18 @@ int main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (parser.isSet(arg_pad_profile))
|
||||
if (parser.isSet(arg_input_config))
|
||||
{
|
||||
if (!s_no_gui)
|
||||
{
|
||||
report_fatal_error(fmt::format("The option '%s' can only be used in combination with '%s'.", arg_pad_profile, arg_no_gui));
|
||||
report_fatal_error(fmt::format("The option '%s' can only be used in combination with '%s'.", arg_input_config, arg_no_gui));
|
||||
}
|
||||
|
||||
g_pad_profile_override = parser.value(pad_profile_option).toStdString();
|
||||
g_input_config_override = parser.value(input_config_option).toStdString();
|
||||
|
||||
if (g_pad_profile_override.empty())
|
||||
if (g_input_config_override.empty())
|
||||
{
|
||||
report_fatal_error(fmt::format("Pad profile name is empty"));
|
||||
report_fatal_error(fmt::format("Input config file name is empty"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue