[PR #1659] [MERGED] The way to Unity, pt.1 #2227

Closed
opened 2026-02-27 21:15:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1659
Author: @polybiusproxy
Created: 12/3/2024
Status: Merged
Merged: 12/5/2024
Merged by: @polybiusproxy

Base: mainHead: unity-pt1


📝 Commits (1)

📊 Changes

8 files changed (+563 additions, -28 deletions)

View changed files

📝 src/common/ntapi.cpp (+6 -0)
📝 src/common/ntapi.h (+415 -2)
📝 src/core/libraries/kernel/threads/pthread.cpp (+30 -1)
📝 src/core/libraries/kernel/threads/pthread.h (+1 -1)
📝 src/core/memory.cpp (+5 -5)
📝 src/core/thread.cpp (+91 -11)
📝 src/core/thread.h (+14 -7)
📝 src/video_core/amdgpu/liverpool.cpp (+1 -1)

📄 Description

This PR is the first of a series of changes with the main goal of getting Unity (and some FNA/MonoGame) games to boot on Windows:

  • Windows' CreateThread does not set the stack as we want so we have to ditch it in favor of the kernel counterpart NtCreateThread—fixes crashes on Unity games.
  • Use aligned size on file mapping

This should now bring Unity games back to a softlock due to missing exception support.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1659 **Author:** [@polybiusproxy](https://github.com/polybiusproxy) **Created:** 12/3/2024 **Status:** ✅ Merged **Merged:** 12/5/2024 **Merged by:** [@polybiusproxy](https://github.com/polybiusproxy) **Base:** `main` ← **Head:** `unity-pt1` --- ### 📝 Commits (1) - [`30d78a0`](https://github.com/shadps4-emu/shadPS4/commit/30d78a07dce0a9b7af4ee8b0dd06da46397fd02e) The way to Unity, pt.1 ### 📊 Changes **8 files changed** (+563 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `src/common/ntapi.cpp` (+6 -0) 📝 `src/common/ntapi.h` (+415 -2) 📝 `src/core/libraries/kernel/threads/pthread.cpp` (+30 -1) 📝 `src/core/libraries/kernel/threads/pthread.h` (+1 -1) 📝 `src/core/memory.cpp` (+5 -5) 📝 `src/core/thread.cpp` (+91 -11) 📝 `src/core/thread.h` (+14 -7) 📝 `src/video_core/amdgpu/liverpool.cpp` (+1 -1) </details> ### 📄 Description This PR is the first of a series of changes with the main goal of getting Unity (and some FNA/MonoGame) games to boot on Windows: - Windows' `CreateThread` does not set the stack as we want so we have to ditch it in favor of the kernel counterpart `NtCreateThread`—fixes crashes on Unity games. - Use aligned size on file mapping This should now bring Unity games back to a softlock due to missing exception support. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2227
No description provided.