diff --git a/src/core/linker.cpp b/src/core/linker.cpp index 316bcdd22..81248072f 100644 --- a/src/core/linker.cpp +++ b/src/core/linker.cpp @@ -8,6 +8,7 @@ #include "common/logging/log.h" #include "common/path_util.h" #include "common/string_util.h" +#include "common/thread.h" #include "core/aerolib/aerolib.h" #include "core/aerolib/stubs.h" #include "core/libraries/kernel/thread_management.h" @@ -676,6 +677,8 @@ void Linker::Execute() { DebugDump(); } + Common::SetCurrentThreadName("GAME_MainThread"); + Libraries::Kernel::pthreadInitSelfMainThread(); // Relocate all modules for (const auto& m : m_modules) {