summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-11-21 21:22:17 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-11-21 21:22:17 +0100
commit7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3 (patch)
tree92da8176bbe5251740f39445a7d24df294de2b56
parentMerge pull request #9279 from liamwhite/this-would-have-never-happened-in-rust (diff)
downloadyuzu-7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3.tar
yuzu-7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3.tar.gz
yuzu-7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3.tar.bz2
yuzu-7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3.tar.lz
yuzu-7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3.tar.xz
yuzu-7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3.tar.zst
yuzu-7e0f70e5a1f01f3e422a9fbca09ae5355e99f9d3.zip
-rw-r--r--src/yuzu/applets/qt_amiibo_settings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/applets/qt_amiibo_settings.cpp b/src/yuzu/applets/qt_amiibo_settings.cpp
index efb7f6ecc..93ad4b4f9 100644
--- a/src/yuzu/applets/qt_amiibo_settings.cpp
+++ b/src/yuzu/applets/qt_amiibo_settings.cpp
@@ -13,7 +13,9 @@
#include "input_common/drivers/virtual_amiibo.h"
#include "input_common/main.h"
#include "ui_qt_amiibo_settings.h"
+#ifdef ENABLE_WEB_SERVICE
#include "web_service/web_backend.h"
+#endif
#include "yuzu/applets/qt_amiibo_settings.h"
#include "yuzu/main.h"
@@ -90,6 +92,7 @@ void QtAmiiboSettingsDialog::LoadAmiiboInfo() {
}
void QtAmiiboSettingsDialog::LoadAmiiboApiInfo(std::string_view amiibo_id) {
+#ifdef ENABLE_WEB_SERVICE
// TODO: Host this data on our website
WebService::Client client{"https://amiiboapi.com", {}, {}};
WebService::Client image_client{"https://raw.githubusercontent.com", {}, {}};
@@ -134,6 +137,7 @@ void QtAmiiboSettingsDialog::LoadAmiiboApiInfo(std::string_view amiibo_id) {
pixmap = pixmap.scaled(250, 350, Qt::AspectRatioMode::KeepAspectRatio,
Qt::TransformationMode::SmoothTransformation);
ui->amiiboImageLabel->setPixmap(pixmap);
+#endif
}
void QtAmiiboSettingsDialog::LoadAmiiboData() {