System: Move thread name init to host

Prevents funky thread names for regtest on Linux.
This commit is contained in:
Stenzek 2024-11-29 21:06:33 +10:00
parent cbc16bee9e
commit b7fff840c8
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions
src
core
duckstation-qt
duckstation-regtest

View File

@ -61,7 +61,6 @@
#include "common/memmap.h"
#include "common/path.h"
#include "common/string_util.h"
#include "common/threading.h"
#include "IconsEmoji.h"
#include "IconsFontAwesome5.h"
@ -499,8 +498,6 @@ void System::ProcessShutdown()
bool System::CPUThreadInitialize(Error* error)
{
Threading::SetNameOfCurrentThread("CPU Thread");
#ifdef _WIN32
// On Win32, we have a bunch of things which use COM (e.g. SDL, Cubeb, etc).
// We need to initialize COM first, before anything else does, because otherwise they might

View File

@ -37,6 +37,7 @@
#include "common/path.h"
#include "common/scoped_guard.h"
#include "common/string_util.h"
#include "common/threading.h"
#include "util/audio_stream.h"
#include "util/http_downloader.h"
@ -1791,6 +1792,8 @@ void EmuThread::stopInThread()
void EmuThread::run()
{
Threading::SetNameOfCurrentThread("CPU Thread");
m_event_loop = new QEventLoop();
m_started_semaphore.release();

View File

@ -121,7 +121,7 @@ bool RegTestHost::InitializeConfig()
EmuFolders::EnsureFoldersExist();
// imgui setup, make sure it doesn't bug out
ImGuiManager::SetFontPathAndRange(std::string(), {0x0020, 0x00FF, 0, 0});
ImGuiManager::SetFontPathAndRange(std::string(), {0x0020, 0x00FF, 0x2022, 0x2022, 0, 0});
return true;
}