[PR #45] [MERGED] dummy libc printf call #1239

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/45
Author: @georgemoralis
Created: 10/2/2023
Status: Merged
Merged: 10/6/2023
Merged by: @georgemoralis

Base: mainHead: libc_HLE_implementations


📝 Commits (7)

  • 809413a dummy libc printf call
  • 825d38e partial printf , hello world demo (not from OpenOrbis) works
  • b9c6d9d printf implementation from vita3k (not yet adapted)
  • cefd3d9 adapting va_arg parameters of printf
  • 551455e printf implementation
  • e31365a small adjustments to printf
  • 5a2ee26 libc cleanups

📊 Changes

7 files changed (+919 additions, -89 deletions)

View changed files

📝 CMakeLists.txt (+1 -1)
📝 src/Core/PS4/HLE/LibC.cpp (+71 -84)
📝 src/Core/PS4/HLE/LibC.h (+1 -4)
src/Emulator/HLE/Libraries/LibC/libc.cpp (+29 -0)
src/Emulator/HLE/Libraries/LibC/libc.h (+15 -0)
src/Emulator/HLE/Libraries/LibC/printf.h (+696 -0)
src/Emulator/HLE/Libraries/LibC/va_ctx.h (+106 -0)

📄 Description

printf is a bit messy since arguments in sysv_abi is different that ms_abi so we can't use va_start to get arguments properly , we should find a workaround


🔄 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/45 **Author:** [@georgemoralis](https://github.com/georgemoralis) **Created:** 10/2/2023 **Status:** ✅ Merged **Merged:** 10/6/2023 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `libc_HLE_implementations` --- ### 📝 Commits (7) - [`809413a`](https://github.com/shadps4-emu/shadPS4/commit/809413a880808e750d2832d224c1719e0d36eb5f) dummy libc printf call - [`825d38e`](https://github.com/shadps4-emu/shadPS4/commit/825d38ef31c29d911344e8749a2ae84796ef630f) partial printf , hello world demo (not from OpenOrbis) works - [`b9c6d9d`](https://github.com/shadps4-emu/shadPS4/commit/b9c6d9d3952f1b7fa4d43a1cde49506ff0983ea8) printf implementation from vita3k (not yet adapted) - [`cefd3d9`](https://github.com/shadps4-emu/shadPS4/commit/cefd3d95ed9a2c484f96bb96d2ac170854c1469b) adapting va_arg parameters of printf - [`551455e`](https://github.com/shadps4-emu/shadPS4/commit/551455e56e834c6738e2d520664f4119186121e9) printf implementation - [`e31365a`](https://github.com/shadps4-emu/shadPS4/commit/e31365aea3695a38e00dba1c419d4c65b31ccf58) small adjustments to printf - [`5a2ee26`](https://github.com/shadps4-emu/shadPS4/commit/5a2ee268f877258386d485c5702a4e0ff9d74cbf) libc cleanups ### 📊 Changes **7 files changed** (+919 additions, -89 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -1) 📝 `src/Core/PS4/HLE/LibC.cpp` (+71 -84) 📝 `src/Core/PS4/HLE/LibC.h` (+1 -4) ➕ `src/Emulator/HLE/Libraries/LibC/libc.cpp` (+29 -0) ➕ `src/Emulator/HLE/Libraries/LibC/libc.h` (+15 -0) ➕ `src/Emulator/HLE/Libraries/LibC/printf.h` (+696 -0) ➕ `src/Emulator/HLE/Libraries/LibC/va_ctx.h` (+106 -0) </details> ### 📄 Description printf is a bit messy since arguments in sysv_abi is different that ms_abi so we can't use va_start to get arguments properly , we should find a workaround --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:11:45 +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#1239
No description provided.