From 4f217e2275525ccd915131b54aef3ee6a97b2dfa Mon Sep 17 00:00:00 2001 From: lizzie Date: Wed, 1 Jul 2026 16:25:56 +0000 Subject: [PATCH] remove unused run_on_host --- src/core/hle/service/services.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/hle/service/services.cpp b/src/core/hle/service/services.cpp index 7274fc32e9..4dfdf9068f 100644 --- a/src/core/hle/service/services.cpp +++ b/src/core/hle/service/services.cpp @@ -75,8 +75,6 @@ Services::Services(std::shared_ptr& sm, Core::System& system system.GetFileSystemController().CreateFactories(*system.GetFilesystem(), false); - bool const run_on_host = true; - // Just a quick C++ lesson // Capturing lambdas will silently create new variables for the objects referenced via = // and create a `auto&` sorts of for `&`; with all your usual reference shenanigans. @@ -98,7 +96,7 @@ Services::Services(std::shared_ptr& sm, Core::System& system {"bsdsocket", &Sockets::LoopProcess}, }) kernel.RunOnHostCoreProcess(std::string(e.first), [&system, f = e.second] { f(system); }).detach(); - kernel.RunOnHostCoreProcess("vi", [&, token] { VI::LoopProcess(system, token); }).detach(); + kernel.RunOnHostCoreProcess("vi", [&, token] { VI::LoopProcess(system, token); }).detach(); // Avoid cold clones of lambdas -- succintly for (auto const& e : std::vector>{ {"sm", &SM::LoopProcess},