Initialize patch stack before thread TLS.

This commit is contained in:
squidbus 2024-08-30 04:42:40 -07:00
parent 0f87d1e3d4
commit 6e552aac6a
2 changed files with 2 additions and 2 deletions

View file

@ -86,8 +86,8 @@ void Linker::Execute() {
// Init primary thread.
Common::SetCurrentThreadName("GAME_MainThread");
Libraries::Kernel::pthreadInitSelfMainThread();
InitTlsForThread(true);
InitializeThreadPatchStack();
InitTlsForThread(true);
// Start shared library modules
for (auto& m : m_modules) {