mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-03 11:37:52 -06:00
* Initial definitions * internal__Fofind * Libcinternal threads fopen stores a valid pthread mutex in the FILE struct. Since this is exposed to the game/app, we need to handle this accurately. * internal__Foprep (and various other functions called in it) * Actual fopen implementation At long last, an actual function I'm supposed to implement. * fflush + compile fixes * fseek implementation Comes with functions fseek calls, aside from fflush which I pushed earlier. * fread, _Frprep Also changed some parameter names a tad to match how I named things in my decomp. And fixed some bugs with how I was handling the weird offseted mode thing * fclose, _Fofree Not confident on this one, but we'll see I guess. * Bug fixing No more crashes at least, fread seems to be broken though. * fopen bugfixes Behavior now matches LLE, at least in how LLE font seems to use it. * Fix _Frprep Seems like everything works now? * Logging Probably going to need to swap lseek and read logs to debug/trace later but this is for debugging. * Remove alignment check Seems I must've misinterpreted some of what Ghidra spat out, since libSceNgs2 is calling with size 1, nmemb 4. * Reduce fseek, fread logs to trace * Clang |
||
|---|---|---|
| .. | ||
| libc_internal_io.cpp | ||
| libc_internal_io.h | ||
| libc_internal_math.cpp | ||
| libc_internal_math.h | ||
| libc_internal_memory.cpp | ||
| libc_internal_memory.h | ||
| libc_internal_str.cpp | ||
| libc_internal_str.h | ||
| libc_internal_threads.cpp | ||
| libc_internal_threads.h | ||
| libc_internal.cpp | ||
| libc_internal.h | ||
| printf.h | ||