Commit Graph

3722 Commits

Author SHA1 Message Date
Valdis Bogdāns
a254fe762f
Merge branch 'main' into fontlib 2026-01-23 13:19:49 +02:00
TheTurtle
fecfbb6b4a
video_core: Small fixes regarding GDS (#3942)
Some checks failed
Build and Release / reuse (push) Has been cancelled
Build and Release / clang-format (push) Has been cancelled
Build and Release / get-info (push) Has been cancelled
Build and Release / windows-sdl (push) Has been cancelled
Build and Release / macos-sdl (push) Has been cancelled
Build and Release / linux-sdl (push) Has been cancelled
Build and Release / linux-sdl-gcc (push) Has been cancelled
Build and Release / pre-release (push) Has been cancelled
* shader_recompiler: Add missing descriptor type for GDS buffer

* liverpool: Implement gds to memory store

* macOS fix?

---------

Co-authored-by: georgemoralis <giorgosmrls@gmail.com>
2026-01-22 17:05:16 +02:00
georgemoralis
508bad87d5
WebDialogBrowser module (#3938)
* initial

* added sceWebBrowserDialogUpdateStatus

* sceWebBrowserDialogInitialize
2026-01-22 17:04:57 +02:00
georgemoralis
62813c0106
Unified UserId (#3949)
* added OrbisUserServiceUserId in generic way to all classes that uses it

* clang
2026-01-22 17:03:22 +02:00
TheTurtle
0d5c5f81a6
video_core: Small readback optimization (#3941)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
* pm4_cmds: Handle nop packet overflow

* liverpool: Detect DispatchDirect patches and promote to DispatchIndirect

* clang..

* log removed

---------

Co-authored-by: georgemoralis <giorgosmrls@gmail.com>
2026-01-21 22:49:35 +02:00
Stephen Miller
3e1f5a0bfb
Kernel.Vmm: Handle sparse physical memory usage + other fixes (#3932)
* Initial work

* Bug fixing

deadlocks and broken unmaps

* Fix more bugs

broken memory pools

* More bug fixing

Still plenty more to fix though

* Even more bug fixing

Finally got Final Fantasy XV back to running, haven't found anymore bugs yet.

* More bugfixing

* Update memory.cpp

* Rewrite start

* Fix for oversized unmaps

* Oops

* Update address_space.cpp

* Clang

* Mac fix?

* Track VMA physical areas based on start in VMA

Allows me to simplify some logic, and should (finally) allow merging VMAs in memory code.

* Merge VMAs, fix some bugs

Finally possible thanks to address space + phys tracking changes

* Clang

* Oops

* Oops2

* Oops3

* Bugfixing

* SDK check for coalescing

Just to rule out any issues from games that wouldn't see coalescing in the first place.

* More ReleaseDirectMemory fixes

I really suck at logic some days

* Merge physical areas within VMAs

In games that perform a lot of similar mappings, you can wind up with 1000+ phys areas in one vma.
This should reduce some of the overhead that might cause.

* Hopefully fix Mac compile

Why must their uint64_t be different?

* Mac pt.2

Oops
2026-01-21 17:36:09 +02:00
georgemoralis
c898071b72
Introducing key_manager for storing encryption keys . (#3935)
Some checks failed
Build and Release / reuse (push) Has been cancelled
Build and Release / clang-format (push) Has been cancelled
Build and Release / get-info (push) Has been cancelled
Build and Release / windows-sdl (push) Has been cancelled
Build and Release / macos-sdl (push) Has been cancelled
Build and Release / linux-sdl (push) Has been cancelled
Build and Release / linux-sdl-gcc (push) Has been cancelled
Build and Release / pre-release (push) Has been cancelled
* Introducing key_manager for storing encryption keys . Currently only trophy key is neccesary

* keep gcc happy?

* addded logging to keymanager

* revert file

* added npbind file format and rewrote part of trp file format
2026-01-19 18:49:57 +02:00
georgemoralis
950d390daf
implemented sceImeDialogGetPanelSizeExtended (#3934)
Some checks failed
Build and Release / reuse (push) Has been cancelled
Build and Release / clang-format (push) Has been cancelled
Build and Release / get-info (push) Has been cancelled
Build and Release / windows-sdl (push) Has been cancelled
Build and Release / macos-sdl (push) Has been cancelled
Build and Release / linux-sdl (push) Has been cancelled
Build and Release / linux-sdl-gcc (push) Has been cancelled
Build and Release / pre-release (push) Has been cancelled
2026-01-17 23:54:17 +02:00
georgemoralis
220e5f67e7
NetFixes : workaround for Epolls on P2P sockets (#3933)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
* return error on P2P sockets

* error message improved
2026-01-17 21:33:14 +02:00
Valdis Bogdāns
aaf1471346
Merge branch 'main' into fontlib 2026-01-17 10:53:18 +02:00
w1naenator
f11e374fc8 Restored support for loading the libSceAudiodec system module 2026-01-17 10:52:26 +02:00
georgemoralis
dce9c04383
AvPlayer fix (#3929)
Some checks failed
Build and Release / reuse (push) Has been cancelled
Build and Release / clang-format (push) Has been cancelled
Build and Release / get-info (push) Has been cancelled
Build and Release / windows-sdl (push) Has been cancelled
Build and Release / macos-sdl (push) Has been cancelled
Build and Release / linux-sdl (push) Has been cancelled
Build and Release / linux-sdl-gcc (push) Has been cancelled
Build and Release / pre-release (push) Has been cancelled
* improved path detection

* clang is pretty

* improved

* improved?

* finished?
2026-01-16 18:33:27 +02:00
w1naenator
a6484150bf Add system font path management functions and refactor font directory retrieval 2026-01-16 16:59:39 +02:00
w1naenator
e3d401cf37 clang 2026-01-16 16:41:41 +02:00
Valdis Bogdāns
d448ddc8ae
Merge branch 'fontfixes' into fontlib 2026-01-16 16:38:06 +02:00
Valdis Bogdāns
692c30e62c
Merge branch 'main' into fontfixes 2026-01-16 16:33:59 +02:00
w1naenator
296e4385c4 Add system font path and override config support
Introduce new config options for system font directory, fallback font name, and per-font overrides. Update config load/save logic to handle a [SystemFonts] TOML section, supporting both fallback and individual font overrides. Improve user instructions for custom font setup and clarify related code comments. These changes enhance flexibility and user experience for system font configuration.
2026-01-16 16:25:49 +02:00
w1naenator
419909e786 Merge branch 'fontlib' of https://github.com/w1naenator/shadPS4 into fontlib 2026-01-16 13:35:21 +02:00
Valdis Bogdāns
b7df3275ab
Merge branch 'shadps4-emu:main' into fontlib 2026-01-16 13:28:58 +02:00
w1naenator
b637cbbd70 Refactor font library functions and improve thread safety
- Updated function signatures in font.h to include the OrbisFontLib parameter for cache clearing and outline buffer management.
- Introduced a mutex in font_internal.cpp to ensure thread safety by protecting access to global font state and library state.
- Added a RemoveState function to safely remove font states.
- Enhanced memory allocation functions in fontft_internal.cpp to use Core::ExecuteGuest for better integration with the guest environment.
- Simplified font loading logic in LibraryOpenFontMemoryStub to improve readability and maintainability.
- Removed redundant code related to file opening and memory allocation, streamlining the font loading process.
This potentially fixes emulator crashes in games that use parallel font initialization, such as Dragon’s Crown.
2026-01-16 13:23:54 +02:00
baggins183
11ee79a333
shader_recompiler: some fixes for tess shaders (#3926)
When walking the users of special constants which form LDS
addresses:
-ignore when a user contributes to the wrong operand of an LDS inst, for
example the data operand of WriteShared* instead of the address operand.
This can mistakenly happen due to phi nodes.
-don't use flags to stash temp info about phis, since flags may already
be in use. Use a separate map.
2026-01-15 09:25:09 +02:00
georgemoralis
cdf3c468b6
Added libSceAudiodec to lle modules list (#3916)
* added libSceAudiodec to lle modules list

* crappy float resample , use it at your own risk

* clang

* adjustments to aac

---------

Co-authored-by: Vladislav Mikhalin <mikhalinvlad@gmail.com>
2026-01-14 18:07:44 +02:00
w1naenator
0864bafe47 Enhance error logging in font metrics functions and update comments for clarity 2026-01-13 17:27:49 +02:00
Vladislav Mikhalin
1a99ab7b09
ajm: fix init params initialization (#3924) 2026-01-13 11:08:46 +02:00
Stephen Miller
acb8d06636
Lib.Audio3d: sceAudio3dGetDefaultOpenParameters fix (#3923)
* OrbisAudio3dOpenParameters struct fix

Not sure why we have the extra filler, but decomp suggests it shouldn't exist.
This fixes stack_chk_fail issues in audio3d using titles.

* Bring back filler, only copy 0x20 bytes.

The library accepts variations on struct size, with the maximum size being the 0x28 size our current struct has.
This fixes the issue without potentially breaking the struct.

* Fix memcpy

Prevent OOB read
2026-01-13 08:32:17 +02:00
Stephen Miller
108cefaf53
Better message for missing game trophies directory (#3922)
Also decreased the log level from critical to warning, as all this affects is the ability to earn trophies.
2026-01-13 08:30:56 +02:00
georgemoralis
a30014fbfc removed lle versions 2026-01-12 19:38:51 +02:00
georgemoralis
11bdfd3a98 using new saving system but i can't understand the fallback mechanism 2026-01-12 19:18:54 +02:00
georgemoralis
877a60fe3b cmakelist 2026-01-12 18:54:53 +02:00
georgemoralis
b97cd2753c load settings 2026-01-12 18:53:22 +02:00
georgemoralis
aba1d8242f cut version of emulator settings to support custom sysfonts folder 2026-01-12 18:48:12 +02:00
georgemoralis
a0014a8853 create sys_fonts in users folder and instructions.txt of what to put inside 2026-01-12 18:24:19 +02:00
georgemoralis
2113de96f0
Merge branch 'main' into fontlib 2026-01-12 17:43:52 +02:00
b7k
540fdcc812
changing the mouse speed does not affect the mouse speed offset (#3917) 2026-01-12 11:21:52 +02:00
georgemoralis
1adbdb53fd
Merge branch 'main' into fontlib 2026-01-12 10:04:58 +02:00
Stephen Miller
910f737079
Core: Add libSceRtc, libSceJpegDec, libSceJpegEnc, and libScePngEnc LLEs (#3918)
* Run libSceRtc LLE

The more we've used our HLE, the more issues we've had with it.
While we debug these bugs, re-enabling LLE will address any regressions the swap caused.

* libSceJpegDec LLE

Needed for Trackmania until we implement HLE for this library

* libScePngEnc LLE

Needed for Minecraft until we implement HLE for this library

* Update documentation appropriately

* libSceJpegEnc LLE

By @georgemoralis's request
2026-01-11 20:48:41 +02:00
Stephen Miller
3844a2fb54
Lib.Videodec2: Stub sceVideodec2AllocateComputeQueue to return a valid computeQueue pointer. (#3915)
* Stub compute queue output to cpuGpuMemory

* Rename namespace

This has bugged me for far too long

* Oops
2026-01-11 10:47:34 +02:00
Stephen Miller
ae47dd5d54
Handle exceptions from OutputDebugString API. (#3914)
Needed after #3900
2026-01-11 03:36:36 +02:00
Stephen Miller
12cd27d0b7
Fix socket_is_ready (#3912) 2026-01-10 21:15:06 +02:00
Stephen Miller
ed73d2b02c
Libraries: libSceNpWebApi2 stubs (#3908)
* libSceNpWebApi2 stubs

Based on some brief decompilation, brings some extra Unreal Engine titles futher.

* Clang

* Suggestions and fixes
2026-01-10 17:33:28 +02:00
Stephen Miller
b84c5ed110
Corrected physical base handling for memory pools (#3909)
On real hardware, each pool commit can have multiple physical memory allocations, always allocating the lowest free physical addresses first.

Currently, since we currently only support one physical mapping per VMA, I create a separate VMA representing each physical allocation we perform.
2026-01-10 17:23:42 +02:00
marecl
f42a566cef
Dirents backport (#3876)
* lseek for directories behaves correctly when final index is smaller than 0 (EINVAL)
Backported and improved dirents from QFS
Normal directory dirents update on change

* PFS moves pointer to end when last dirent is returned

* Correct entry type in PFS directory
2026-01-10 00:35:43 +02:00
Valdis Bogdāns
8376f17c2c
Merge branch 'main' into fontlib 2026-01-09 23:48:07 +02:00
georgemoralis
be99cb4d5b
Emulator state (#3906)
* moved getShowFpsCounter to emu state

* more state variables

* fps counter is back

* removed fpscolor
2026-01-09 19:42:05 +02:00
Vladislav Mikhalin
f7a473b391
read compiled SDK version from eboot (#3905) 2026-01-09 18:29:09 +03:00
w1naenator
4ae39ff2df Fix: fypo 2026-01-09 14:39:18 +02:00
Valdis Bogdāns
6174ce1c74
Update fontft_internal.cpp
typo fix
2026-01-09 14:23:00 +02:00
w1naenator
78faac52e5 clang 2026-01-09 13:04:48 +02:00
w1naenator
d845b9503d Refactor font rendering and path resolution logic to fix Metaphor: ReFantazio glyphs cropping and anywhereVR "thin" glyphs.
- Updated RenderCodepointToSurface and RenderCodepointToSurfaceWithScale functions to set result->transImage to nullptr instead of result->stage.
- Modified font definitions to use updated font file names for various language sets.
- Introduced ResolveSystemFontPathCandidate function to streamline font path resolution, allowing for better handling of font directories.
- Enhanced LoadFontFile function to check for font files in "font" and "font2" directories based on the parent directory name.
- Improved error logging for font path overrides in ResolveSystemFontPath function.
2026-01-09 13:00:17 +02:00
Valdis Bogdāns
cfe3259999
Merge branch 'main' into fontlib 2026-01-09 11:44:49 +02:00