summaryrefslogtreecommitdiff
path: root/src/yuzu/loading_screen.h
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2019-01-18 10:02:27 -0700
committerJames Rowe <jroweboy@gmail.com>2019-01-19 23:34:03 -0700
commit69da26754003cb4695380738f5a837c9a93b5eaa (patch)
treef34b3c75e0c36cf64d13a0c91366de0b1cb60085 /src/yuzu/loading_screen.h
parent08fcf41b0a3d4e6066cb72f47c3e1d94bb7fc408 (diff)
Add a workaround if QMovie isn't available
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;
};