diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-21 16:38:23 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-06 22:23:40 -0300 |
| commit | f1e717fbee860a05b548e225e37c766ee3f0bd5d (patch) | |
| tree | 085261558efeb2b47ce5316b52314980005b3e5c /src/yuzu/bootmanager.cpp | |
| parent | 66a3760a719accc771c2d50540d670d2e9db0db7 (diff) | |
gl_shader_cache: Link loading screen with disk shader cache load
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index f74cb693a4..73b04b7492 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -29,6 +29,15 @@ void EmuThread::run() { stop_run = false; + emit LoadProgress(VideoCore::LoadCallbackStage::Prepare, 0, 0); + + Core::System::GetInstance().Renderer().Rasterizer().LoadDiskResources( + stop_run, [this](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) { + emit LoadProgress(stage, value, total); + }); + + emit LoadProgress(VideoCore::LoadCallbackStage::Complete, 0, 0); + // holds whether the cpu was running during the last iteration, // so that the DebugModeLeft signal can be emitted before the // next execution step |
