summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-06-06 13:50:20 +0200
committerGitHub <noreply@github.com>2023-06-06 13:50:20 +0200
commit2d56daf1bb62dfdf3db98e541071b17065b3c849 (patch)
tree9ee2f57e149df1a500a62c7a1660e7587f278cb1 /Source/Core/DolphinNoGUI
parent83b4af86b6defab21bc695dc9d6e876ac67b345d (diff)
parentb3c9f49cbedd03673a490cbeb7f886a3663e3bb8 (diff)
Merge pull request #11873 from AdmiralCurtiss/pause-and-lock-host
Core: Assert that only the Host thread may call PauseAndLock().
Diffstat (limited to 'Source/Core/DolphinNoGUI')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 887181acb2..ff69e6bf7a 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -185,6 +185,8 @@ static std::unique_ptr<Platform> 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")