From b3c9f49cbedd03673a490cbeb7f886a3663e3bb8 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Fri, 2 Jun 2023 18:00:51 +0200 Subject: Core: Assert that only the Host thread may call PauseAndLock(). --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp') diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index 9ba5de1e98..1371507e1f 100644 --- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp +++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp @@ -181,6 +181,8 @@ static std::unique_ptr GetPlatform(const optparse::Values& options) int main(int argc, char* argv[]) { + Core::DeclareAsHostThread(); + auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::OmitGUIOptions); parser->add_option("-p", "--platform") .action("store") -- cgit v1.2.3