diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-06-19 22:17:56 +1000 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-06-19 22:17:56 +1000 |
commit | c7ed7d94279082600eb75218ebe8b4cc6a3ab0d0 (patch) | |
tree | 318c157fe64cca488593415f62178194ba211965 /src/yuzu/configuration/configure_service.cpp | |
parent | 0f7822acb17a8c2534792b074a6181abfb95ec69 (diff) |
Fix compilation when not building with boxcat
Fixes compilation when trying to build without boxcat enabled
Diffstat (limited to 'src/yuzu/configuration/configure_service.cpp')
-rw-r--r-- | src/yuzu/configuration/configure_service.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_service.cpp b/src/yuzu/configuration/configure_service.cpp index 06566e981..92a1737b3 100644 --- a/src/yuzu/configuration/configure_service.cpp +++ b/src/yuzu/configuration/configure_service.cpp @@ -68,6 +68,7 @@ void ConfigureService::SetConfiguration() { } std::pair<QString, QString> ConfigureService::BCATDownloadEvents() { +#ifdef YUZU_ENABLE_BOXCAT std::optional<std::string> global; std::map<std::string, Service::BCAT::EventStatus> map; const auto res = Service::BCAT::Boxcat::GetStatus(global, map); @@ -106,6 +107,10 @@ std::pair<QString, QString> ConfigureService::BCATDownloadEvents() { .arg(FormatEventStatusString(value)); } return {QStringLiteral("Current Boxcat Events"), std::move(out)}; +#else + return {QStringLiteral("Current Boxcat Events"), + tr("There are currently no events on boxcat.")}; +#endif } void ConfigureService::OnBCATImplChanged() { |