Преглед на файлове

bootmanager: Add a check whether loading is complete

Morph преди 5 години
родител
ревизия
51a7681957
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 4 0
      src/yuzu/bootmanager.cpp
  2. 2 0
      src/yuzu/bootmanager.h

+ 4 - 0
src/yuzu/bootmanager.cpp

@@ -569,6 +569,10 @@ void GRenderWindow::CaptureScreenshot(u32 res_scale, const QString& screenshot_p
         layout);
 }
 
+bool GRenderWindow::IsLoadingComplete() const {
+    return first_frame;
+}
+
 void GRenderWindow::OnMinimalClientAreaChangeRequest(std::pair<u32, u32> minimal_size) {
     setMinimumSize(minimal_size.first, minimal_size.second);
 }

+ 2 - 0
src/yuzu/bootmanager.h

@@ -162,6 +162,8 @@ public:
     /// Destroy the previous run's child_widget which should also destroy the child_window
     void ReleaseRenderTarget();
 
+    bool IsLoadingComplete() const;
+
     void CaptureScreenshot(u32 res_scale, const QString& screenshot_path);
 
     std::pair<u32, u32> ScaleTouch(const QPointF& pos) const;