mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-16 15:57:58 -05:00
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:
@ -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());
|
||||
|
Reference in New Issue
Block a user