diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-22 00:04:55 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-22 00:04:57 -0300 |
commit | 4009ae1da2360f20721c93cd204eb64c7342eb53 (patch) | |
tree | 6bdd3084265212a096832f1e723c0c502f958f32 /src/yuzu_cmd/yuzu.cpp | |
parent | 0485b8e84bacbf7fd56081822faca46114cbeb85 (diff) |
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) { system.GPU().Start(); system.Renderer().ReadRasterizer()->LoadDiskResources( - system.CurrentProcess()->GetTitleID(), false, + system.CurrentProcess()->GetTitleID(), std::stop_token{}, [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); void(system.Run()); |