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.
This commit is contained in:
parent
3fb11c6e77
commit
2b175430fd
8 changed files with 18 additions and 18 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue