summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_service.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-06-19 22:17:56 +1000
committerDavid Marcec <dmarcecguzman@gmail.com>2020-06-19 22:17:56 +1000
commitc7ed7d94279082600eb75218ebe8b4cc6a3ab0d0 (patch)
tree318c157fe64cca488593415f62178194ba211965 /src/yuzu/configuration/configure_service.cpp
parent0f7822acb17a8c2534792b074a6181abfb95ec69 (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.cpp5
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() {