Commit Graph

91 Commits

Author SHA1 Message Date
red-prig
d39bc5d685 Update declaration 2023-06-15 23:57:43 +03:00
Pavel
711bc11b47 revert 2023-03-13 16:37:52 +03:00
red-prig
fef3d27572 + 2023-03-12 17:01:30 +03:00
Kagamma
d9d8eef529
Mount "sys" folder (#104) 2023-03-12 17:05:58 +03:00
red-prig
029a2935c1 mount "mnt" folder 2023-03-11 22:48:41 +03:00
Pavel
35e26766f0 sceKernelTruncate/truncate 2023-03-09 10:15:15 +03:00
Pavel
25a6ad85cb Added TTY and DBG output prefix 2023-03-07 14:49:36 +03:00
Pavel
d41be42b84 ops 2023-03-07 14:48:54 +03:00
red-prig
4f21129183 Time calculation corrected, tests needed 2023-03-05 14:09:26 +03:00
Kagamma
224254aee9
libSceFiber + libSceUlt (#92)
* libSceFiber

* Minor

* Minor

* Minor

* Minor

* Struct align

* Minor

* Minor

* Minor

* Minor

* Minor

* sceDepthInitialize + sceDepthQueryMemory

* Minor

* ult

* More ult funcs

* Minor

* Minor

* Minor

* sceUlt mutex

* Minor

* wait instead of yield

* sceUltUlthreadExit

* Minor

* Minor

* Minor

* Adds assertion

* Minor

* sceUltSemaphoreXxx

* sceNpTssCreateNpTitleCtx

* Adjust SceUltUlthreadRuntime size

* Adds reversing info of SceFiber structs

* Minor

* Minor
2023-02-26 18:48:22 +03:00
Pavel
6cdeaad6b6 Safer color change 2023-02-14 19:34:22 +03:00
Pavel
348916bf9f Halt instead DebugBreak 2023-02-14 19:30:27 +03:00
red-prig
5ea2c17ef0 + 2023-02-02 20:38:42 +03:00
red-prig
a83915e939 + 2023-02-02 20:08:38 +03:00
red-prig
6f230469b0 Fix enumeration of pseudo devices 2023-01-30 20:40:04 +03:00
red-prig
3d9cb9f454 fix root dir fstat 2023-01-25 21:04:28 +03:00
red-prig
379d5497d3 sceNetInetNtop 2023-01-25 20:34:39 +03:00
red-prig
0e78854da2 sys crt extended 2023-01-24 20:33:12 +03:00
Kagamma
f2d4f52331
Correct AvPlayer handle, avoid dangling pointers + Refactor code (#71)
* Correct avplayer handle, avoid dangling pointers

* Uses TMemChunk in sys_types unit instead

* Minor

* Minor

* SceAvPlayerHandle should be 8 bytes in size

* Minor

* Minor

* Minor

* Moved from TDictionary to HAMT it's faster

* Added lock of Hamt and individual lock of Handle

* Using AllocMem instead of New (New doesn't guarantee an initial value) and fixing an endless loop of zero lastVideoTimeStamp

* Added callback helpers

* +

* +

Co-authored-by: Pavel <68122101+red-prig@users.noreply.github.com>
Co-authored-by: red-prig <vdpasha@mail.ru>
2023-01-24 19:00:20 +03:00
Pavel
6771f25d42 Added envrion location accounting, identified the need to align the stack before starting Entry 2023-01-24 14:01:20 +03:00
Pavel
11551a1816 parse root fix 2023-01-24 11:41:19 +03:00
Pavel
85e8e21a5c ForEachRootDir 2023-01-24 11:19:27 +03:00
Pavel
38a18ed2c0 small fix readv/writev 2023-01-24 11:18:32 +03:00
Pavel
da297c899d ioctl 2023-01-23 16:54:08 +03:00
Pavel
51009e606b Mount /usr and /data to current dir 2023-01-23 15:57:26 +03:00
Pavel
82f7cbd35f writev/sceKernelWritev and extended char fd 2023-01-23 15:43:15 +03:00
Kagamma
594cd56cb6
AvPlayer HLE (#58)
* Adds some libSceAvPlayer dummy functions, ps4_sceAvPlayerAddSource cache files to 'avplayer_dump' directory

* Its better for languageCode to be array of chars

* SysLogPrefix

* us -> ms

* Adds ffmpeg headers

* Fix compilation

* sceAvPlayerInitEx

* spinlock, proper close ffmpeg stuff

* Refactor + fix

* NextPacket

* ReceiveAudio

* ReceiveVideo

* audio works

* Minor fix

* Minor

* accurate GetTimeInUs

* sceAvPlayerPostInit and sceAvPlayerStop

* Is not GPU Addr err

* Fixing Structure Alignments

* The original timeStamp is listed in ms in the documentation

* Forgotten "not" and disable Exit(False); (Seems to work, need to test)

* Should check patch folder first

* Minor

* test CI

* use parse_filename

* _sceAvPlayerInit, _sceAvPlayerInitEx

* ps4_sceAvPlayerPostInit, _sceAvPlayerAddSource

* fix types

* _sceAvPlayerGetAudioData

* _sceAvPlayerGetVideoDataEx

* _sceAvPlayerStop, _sceAvPlayerClose

* Removed outdated comments + long name

* Use MemChunk instead of a simple Pointer

* fix init value

* convert to utf8

Co-authored-by: Pavel <68122101+red-prig@users.noreply.github.com>
2023-01-17 16:32:47 +03:00
Pavel
00f5d0472b + 2023-01-13 15:43:10 +03:00
Pavel
5c144b1327 move files op to ntapi
I hope I didn't break anything....
2023-01-12 20:30:56 +03:00
Pavel
d91819f4ff + 2023-01-11 22:01:01 +03:00
Pavel
7882b646ea + 2023-01-11 14:06:55 +03:00
red-prig
ae44cd497a sceKernelPreadv 2023-01-09 22:06:26 +03:00
red-prig
aefba2f66f pthread_setschedparam fix 2023-01-05 20:56:20 +03:00
red-prig
d401f90ffa More accurate accounting of prior, etc. 2023-01-05 19:46:37 +03:00
red-prig
a3b3bdb8f6 pthread_attr_setinheritsched and etc 2023-01-04 22:51:10 +03:00
red-prig
6299a733da pthread_attr_getschedparam and etc 2023-01-04 22:28:31 +03:00
flyingtincan
3e8cc63d3a
GFX thread sleep fix and Thread names (#46)
* Thread names in debugger and some logs

* Fix GFX thread sleeping too long
2023-01-02 16:17:06 +03:00
red-prig
c9615d8f15 sys_root 2022-12-31 16:57:43 +03:00
red-prig
9788a825d5 Ignore sys_crt errors 2022-12-23 21:02:53 +03:00
red-prig
bcf34a5b02 sceNetErrnoLoc 2022-12-16 21:01:06 +03:00
Pavel
495036f660 Small refractoring 2022-12-16 14:06:02 +03:00
Pavel
17a0ea750e fcntl 2022-12-16 12:31:27 +03:00
Pavel
78de552ea0 fix path parse 2022-12-14 21:01:05 +03:00
Pavel
4bb79631c8 temp0 and etc 2022-12-14 11:15:30 +03:00
Pavel
baa12ac48b + 2022-12-12 15:33:05 +03:00
red-prig
ab085657cb sceAppContentDownloadDataGetAvailableSpaceKb 2022-12-11 17:25:44 +03:00
red-prig
ae103ec9aa sceAppContentTemporaryDataGetAvailableSpaceKb 2022-12-11 01:13:22 +03:00
red-prig
5d1dd3f2cb + 2022-12-10 23:21:29 +03:00
Pavel
56f0d24fcc scePthreadKeyCreate and etc 2022-12-09 17:08:27 +03:00
Pavel
0b7a4631f2 getrusage 2022-12-07 15:36:21 +03:00