diff options
| author | 2021-06-22 00:04:55 -0300 | |
|---|---|---|
| committer | 2021-06-22 00:04:57 -0300 | |
| commit | 4009ae1da2360f20721c93cd204eb64c7342eb53 (patch) | |
| tree | 6bdd3084265212a096832f1e723c0c502f958f32 /src/yuzu_cmd/yuzu.cpp | |
| parent | Merge pull request #6499 from FernandoS27/we-were-on-a-break (diff) | |
| download | yuzu-4009ae1da2360f20721c93cd204eb64c7342eb53.tar.gz yuzu-4009ae1da2360f20721c93cd204eb64c7342eb53.tar.xz yuzu-4009ae1da2360f20721c93cd204eb64c7342eb53.zip | |
bootmanager: Use std::stop_source for stopping emulation
Use its std::stop_token to abort shader cache loading.
Using std::stop_token instead of std::atomic_bool allows the usage of
other utilities like std::stop_callback.
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 584967f5c..50e388312 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -219,7 +219,7 @@ int main(int argc, char** argv) { | |||
| 219 | system.GPU().Start(); | 219 | system.GPU().Start(); |
| 220 | 220 | ||
| 221 | system.Renderer().ReadRasterizer()->LoadDiskResources( | 221 | system.Renderer().ReadRasterizer()->LoadDiskResources( |
| 222 | system.CurrentProcess()->GetTitleID(), false, | 222 | system.CurrentProcess()->GetTitleID(), std::stop_token{}, |
| 223 | [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); | 223 | [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); |
| 224 | 224 | ||
| 225 | void(system.Run()); | 225 | void(system.Run()); |