summaryrefslogtreecommitdiff
path: root/src/yuzu/loading_screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/loading_screen.h')
-rw-r--r--src/yuzu/loading_screen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu/loading_screen.h b/src/yuzu/loading_screen.h
index ffcaa260d..2a6cf1142 100644
--- a/src/yuzu/loading_screen.h
+++ b/src/yuzu/loading_screen.h
@@ -7,6 +7,10 @@
#include <memory>
#include <QWidget>
+#if !QT_CONFIG(movie)
+#define YUZU_QT_MOVIE_MISSING 1
+#endif
+
namespace Loader {
class AppLoader;
}
@@ -42,9 +46,11 @@ public:
void OnLoadProgress(std::size_t value, std::size_t total);
private:
+#ifndef YUZU_QT_MOVIE_MISSING
std::unique_ptr<QMovie> animation;
std::unique_ptr<QBuffer> backing_buf;
std::unique_ptr<QByteArray> backing_mem;
+#endif
std::unique_ptr<Ui::LoadingScreen> ui;
std::size_t previous_total = 0;
};