CMake: Swap USE_ and WITH_ for ENABLE_
Consistency.
This commit is contained in:
@@ -103,7 +103,7 @@ void AudioSettingsWidget::updateDriverNames()
|
||||
std::vector<std::string> names;
|
||||
std::vector<std::pair<std::string, std::string>> devices;
|
||||
|
||||
#ifdef USE_CUBEB
|
||||
#ifdef ENABLE_CUBEB
|
||||
if (backend == AudioBackend::Cubeb)
|
||||
{
|
||||
names = AudioStream::GetCubebDriverNames();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "util/d3d11_device.h"
|
||||
#include "util/d3d12_device.h"
|
||||
#endif
|
||||
#ifdef WITH_VULKAN
|
||||
#ifdef ENABLE_VULKAN
|
||||
#include "util/vulkan_device.h"
|
||||
#endif
|
||||
|
||||
@@ -199,7 +199,7 @@ void DisplaySettingsWidget::populateGPUAdaptersAndResolutions()
|
||||
aml = GPUDevice::WrapGetMetalAdapterAndModeList();
|
||||
break;
|
||||
#endif
|
||||
#ifdef WITH_VULKAN
|
||||
#ifdef ENABLE_VULKAN
|
||||
case GPURenderer::HardwareVulkan:
|
||||
aml = VulkanDevice::StaticGetAdapterAndModeList();
|
||||
threaded_presentation_supported = true;
|
||||
|
||||
@@ -99,7 +99,7 @@ GeneralSettingsWidget::GeneralSettingsWidget(SettingsDialog* dialog, QWidget* pa
|
||||
dialog->registerWidgetHelp(m_ui.autoLoadCheats, tr("Automatically Load Cheats"), tr("Unchecked"),
|
||||
tr("Automatically loads and applies cheats on game start."));
|
||||
|
||||
#ifdef WITH_DISCORD_PRESENCE
|
||||
#ifdef ENABLE_DISCORD_PRESENCE
|
||||
{
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enableDiscordPresence, "Main", "EnableDiscordPresence",
|
||||
false);
|
||||
|
||||
@@ -144,7 +144,7 @@ void MainWindow::initialize()
|
||||
switchToGameListView();
|
||||
updateWindowTitle();
|
||||
|
||||
#ifdef WITH_RAINTEGRATION
|
||||
#ifdef ENABLE_RAINTEGRATION
|
||||
if (Achievements::IsUsingRAIntegration())
|
||||
Achievements::RAIntegration::MainWindowChanged((void*)winId());
|
||||
#endif
|
||||
@@ -1616,7 +1616,7 @@ void MainWindow::setupAdditionalUi()
|
||||
connect(action, &QAction::triggered, [scale]() { g_emu_thread->requestDisplaySize(scale); });
|
||||
}
|
||||
|
||||
#ifdef WITH_RAINTEGRATION
|
||||
#ifdef ENABLE_RAINTEGRATION
|
||||
if (Achievements::IsUsingRAIntegration())
|
||||
{
|
||||
QMenu* raMenu = new QMenu(QStringLiteral("RAIntegration"), m_ui.menu_Tools);
|
||||
|
||||
@@ -1764,7 +1764,7 @@ void QtHost::PrintCommandLineHelp(const char* progname)
|
||||
std::fprintf(stderr, " -settings <filename>: Loads a custom settings configuration from the\n"
|
||||
" specified filename. Default settings applied if file not found.\n");
|
||||
std::fprintf(stderr, " -earlyconsole: Creates console as early as possible, for logging.\n");
|
||||
#ifdef WITH_RAINTEGRATION
|
||||
#ifdef ENABLE_RAINTEGRATION
|
||||
std::fprintf(stderr, " -raintegration: Use RAIntegration instead of built-in achievement support.\n");
|
||||
#endif
|
||||
std::fprintf(stderr, " --: Signals that no more arguments will follow and the remaining\n"
|
||||
@@ -1905,7 +1905,7 @@ bool QtHost::ParseCommandLineParametersAndInitializeConfig(QApplication& app,
|
||||
InitializeEarlyConsole();
|
||||
continue;
|
||||
}
|
||||
#ifdef WITH_RAINTEGRATION
|
||||
#ifdef ENABLE_RAINTEGRATION
|
||||
else if (CHECK_ARG("-raintegration"))
|
||||
{
|
||||
Achievements::SwitchToRAIntegration();
|
||||
|
||||
@@ -86,7 +86,7 @@ void QtHost::InstallTranslator()
|
||||
if (!has_base_ts)
|
||||
{
|
||||
// Try without the country suffix.
|
||||
const int index = language.lastIndexOf('_');
|
||||
const int index = language.lastIndexOf('-');
|
||||
if (index > 0)
|
||||
{
|
||||
base_path = QStringLiteral("%1/qt_%2.qm").arg(base_dir).arg(language.left(index));
|
||||
|
||||
Reference in New Issue
Block a user