[PR #2659] [MERGED] clock_gettime fixes for windows #2889

Closed
opened 2026-02-27 22:01:39 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2659
Author: @diegolix29
Created: 3/20/2025
Status: Merged
Merged: 3/20/2025
Merged by: @georgemoralis

Base: mainHead: ClockTimeFixes


📝 Commits (3)

  • da3e7c4 Using OrbisKernelTimespec under clock_gettime, orbis_clock_gettime, sceKernelClockGettime to fix compatibility issues.
  • d56e232 final fix test
  • 5d6ad5d Roamic suggestions

📊 Changes

1 file changed (+8 additions, -7 deletions)

View changed files

📝 src/core/libraries/kernel/time.cpp (+8 -7)

📄 Description

This PR changes struct timespec to OrbisKernelTimespec in orbis_clock_gettime, to fix binary compatibility issues with some games, such as Deathlight, Mages of mystralia and Mad max on windows.

Also for me hollow knight can load savefiles too after this. Before only could start a new game.

Makes those games boot again and deatlight can probably be full playable. Haven ask for a new report on it.


🔄 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/2659 **Author:** [@diegolix29](https://github.com/diegolix29) **Created:** 3/20/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `ClockTimeFixes` --- ### 📝 Commits (3) - [`da3e7c4`](https://github.com/shadps4-emu/shadPS4/commit/da3e7c43abd2b65dabb04a9bccd82f06fc85ccde) Using OrbisKernelTimespec under clock_gettime, orbis_clock_gettime, sceKernelClockGettime to fix compatibility issues. - [`d56e232`](https://github.com/shadps4-emu/shadPS4/commit/d56e2326a44e8ee8a7e95da6377f7928c97946d3) final fix test - [`5d6ad5d`](https://github.com/shadps4-emu/shadPS4/commit/5d6ad5da6129766d8cdada9dfda77cd0d2918ab5) Roamic suggestions ### 📊 Changes **1 file changed** (+8 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/time.cpp` (+8 -7) </details> ### 📄 Description This PR changes `struct timespec` to `OrbisKernelTimespec` in `orbis_clock_gettime`, to fix binary compatibility issues with some games, such as Deathlight, Mages of mystralia and Mad max on windows. Also for me hollow knight can load savefiles too after this. Before only could start a new game. Makes those games boot again and deatlight can probably be full playable. Haven ask for a new report on it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:39 +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#2889
No description provided.