diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-02 18:00:51 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-02 18:51:43 +0200 |
| commit | b3c9f49cbedd03673a490cbeb7f886a3663e3bb8 (patch) | |
| tree | 552151ef2296f9b2976aa43bd23db4ab69add524 /Source/Core/DolphinNoGUI/MainNoGUI.cpp | |
| parent | 7bbd530eb5046bd218636d9b6ba0b7c318a09e55 (diff) | |
Core: Assert that only the Host thread may call PauseAndLock().
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
| -rw-r--r-- | Source/Core/DolphinNoGUI/MainNoGUI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<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") |
