Commit graph

339 commits

Author SHA1 Message Date
georgemoralis 133dc7604e some cleanups 2023-11-21 16:54:10 +02:00
georgemoralis 1db6431052 functions libkernel to get openrorbis working (without tls) 2023-11-19 12:55:07 +02:00
georgemoralis 7cf2e99a07 small correction 2023-11-19 10:48:59 +02:00
georgemoralis efc542bdb8 initial fs implementation (mounting /app0/) 2023-11-19 10:22:46 +02:00
georgemoralis 44d0b4b089 scePthreadCond functions 2023-11-16 13:31:12 +02:00
georgemoralis a21f487e89 initial ScePthreadCond works 2023-11-16 09:14:10 +02:00
georgemoralis 8444dd408d prefix in libc functions to avoid messing with std ones 2023-11-16 09:13:50 +02:00
georgemoralis 2ea3a7fe1e some threadman fixes 2023-11-16 08:49:26 +02:00
georgemoralis 339dac69ee Merge pull request #71 from georgemoralis/undertale
Undertale-mutexes
2023-11-12 20:26:51 +02:00
georgemoralis 288c47787b cleanup createMutex 2023-11-12 20:23:42 +02:00
georgemoralis 40bef41646 fixed issue in scePthreadAttrSetschedpolicy 2023-11-12 15:09:18 +02:00
georgemoralis 7b1766a3df better posix errors 2023-11-12 13:23:35 +02:00
wheremyfoodat 880933c432 some adjustments 2023-11-12 10:57:50 +02:00
georgemoralis 1d77bd1f19 added sceSystemServiceGetStatus 2023-11-11 16:25:53 +02:00
wheremyfoodat 85b7621354 [Libc] Add getptolower/getptoupper/getpctype 2023-11-11 12:28:15 +02:00
georgemoralis c836198a74 improved mutex creation 2023-11-11 12:13:43 +02:00
georgemoralis a4342d07b4 init mutex if it doesn't exist when trying to lock (found in openorbis) 2023-11-11 10:49:44 +02:00
georgemoralis 690fa43f97 mutex debugging log 2023-11-11 10:01:16 +02:00
georgemoralis 6e948ccf33 implemented posix error return codes 2023-11-11 09:45:47 +02:00
georgemoralis 7945e53bd1 some mutexlock , mutexunlock implementations 2023-11-10 23:30:28 +02:00
georgemoralis c93f5acf40 some dummy mutexlock-unlock 2023-11-10 21:08:32 +02:00
georgemoralis da9e93b4c9 some refactoring on thread class 2023-11-10 20:51:02 +02:00
georgemoralis 280b340598 added sceMutexInit functions 2023-11-10 19:52:41 +02:00
georgemoralis 5c8a34609d moved thread_management to proper package 2023-11-10 17:31:56 +02:00
GPUCode 3b69d5aaaa kernel: To snake case 2023-11-06 01:19:57 +02:00
GPUCode 0150a3e9eb common: Move timer to common 2023-11-06 01:17:28 +02:00
GPUCode 477b4fb07f core: Reorganize 2023-11-06 01:11:54 +02:00
GPUCode 3359f9289d emulator: Use fmt::format instead of snprintf 2023-11-05 17:14:50 +02:00
GPUCode 8ad26a4dc8 common: Move classes to common namespace 2023-11-05 16:56:28 +02:00
GPUCode 9cc85f4635 src: Move certain headers in common 2023-11-05 13:41:26 +02:00
GPUCode 963f665b6f cmake: Refactor library management 2023-11-05 13:22:32 +02:00
georgemoralis a52c11dbb8 libc fprintf implementation for stdout,stderr case (needed from undertale) 2023-11-01 13:02:39 +02:00
georgemoralis cb023852b7 some HLE implementation for undertale game to process further 2023-11-01 12:40:56 +02:00
georgemoralis 34846e8b1b finished libc refactoring 2023-10-31 19:08:33 +02:00
georgemoralis 90efe48b27 libc separate stdlib functions to libc_stdlib 2023-10-31 18:12:05 +02:00
georgemoralis e07cfa1d0f libc separated string functions to libc_string 2023-10-31 17:32:56 +02:00
georgemoralis 13b8a74a43 cleanup libc (wip) and separated it to several files 2023-10-31 15:53:46 +02:00
georgemoralis 6e63d783e5 reorganized libc package 2023-10-31 15:37:24 +02:00
georgemoralis 6e1b06e606 core renaming 2023-10-31 14:28:42 +02:00
georgemoralis a8cd1ac26d refactoring system service 2023-10-31 14:04:35 +02:00
georgemoralis 0eef2a0fba user service refactoring 2023-10-31 13:35:52 +02:00
georgemoralis c3a23727d5 log scePadOpen 2023-10-31 09:04:08 +02:00
georgemoralis 35e632a2f0 refactored libpad to new package 2023-10-31 09:01:20 +02:00
georgemoralis 5d90022f6a refactoring Core folder to core 2023-10-31 08:47:58 +02:00
georgemoralis 5499d1c81c file_system reorganized (dummy) 2023-10-30 23:04:57 +02:00
georgemoralis 773cd6db33 reimplemented sceKernelReadTsc in proper package and some abi fixes 2023-10-30 20:22:25 +02:00
georgemoralis 7703477af2 pause emu with p button 2023-10-30 14:52:01 +02:00
georgemoralis b668c1424c implemented sceKernelGetProcessTimeCounter , sceKernelGetProcessTimeCounterFrequency 2023-10-30 12:53:52 +02:00
georgemoralis 5127fdcd23 namespace update 2023-10-30 12:43:39 +02:00
georgemoralis 1b63349ef4 added timestamp in buttons state 2023-10-30 08:57:43 +02:00
georgemoralis eb783a1d70 implemented sceKernelGetProcessTime 2023-10-30 08:48:52 +02:00
georgemoralis d8523271e4 implemented fps counter 2023-10-29 23:46:34 +02:00
georgemoralis 2b9fecf6d0 restored previous timer class 2023-10-29 23:46:18 +02:00
georgemoralis 28ef4b2a8e fixed return in flip() function 2023-10-29 23:36:15 +02:00
georgemoralis 08b2f5906e more debugging in elf loader 2023-10-28 09:12:43 +03:00
georgemoralis e847f317e8 switched elf logging to fmt 2023-10-28 08:55:58 +03:00
georgemoralis 3ad4d77660 Update src/Util/log.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
2023-10-28 00:09:47 +03:00
georgemoralis c1ea924cef Update src/Util/log.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
2023-10-27 20:56:21 +03:00
georgemoralis 14315740f2 Update src/Util/log.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
2023-10-27 20:55:18 +03:00
georgemoralis 389f798ec4 log exceptions and flush log file 2023-10-27 18:57:48 +03:00
georgemoralis b38f9c28ac improved logging in elf loader 2023-10-27 18:28:05 +03:00
georgemoralis 1ca3d68f59 removed obsolute fs 2023-10-27 11:07:19 +03:00
GPUCode 4579122515 vulkan: Remove orphan new part 2 2023-10-26 23:46:05 +03:00
GPUCode 944401aa7a vulkan: Remove orphan new part 1 2023-10-26 23:38:37 +03:00
GPUCode 5118435d65 code: Replace printf/scanf with type safe fmt 2023-10-26 23:29:19 +03:00
GPUCode 9ceef6e6f6 main: Remove remnants of imgui example 2023-10-26 23:15:11 +03:00
GPUCode bd8e74f4ef singleton: Use unique_ptr 2023-10-26 23:13:24 +03:00
GPUCode 3b71da6272 linker: Eliminate orphan news
* Most of these can just be on the stack, with the rest being std::vectors
2023-10-26 23:07:15 +03:00
GPUCode 17be88be2e core: Rework elf loader 2023-10-26 22:55:13 +03:00
GPUCode eef2973a46 core: Remove Timer in favour of std::chrono 2023-10-22 17:17:43 +03:00
GPUCode 7b6a127051 core: Switch to std threading primitives 2023-10-22 17:10:25 +03:00
georgemoralis 6fb5c68812 started 0.0.3 WIP 2023-10-22 00:20:51 +03:00
georgemoralis 680b986bbc updated version to v0.0.2 2023-10-21 21:37:17 +03:00
georgemoralis a805718d6c moved controller to host 2023-10-20 07:25:52 +03:00
georgemoralis a16ab298b1 more draft fs 2023-10-19 17:52:49 +03:00
georgemoralis bf16dbee34 draft fs design 2023-10-19 17:02:49 +03:00
georgemoralis 9d3f1f9c35 e_type ET_SCE_DYNAMIC seems to be valid as well 2023-10-19 13:01:20 +03:00
georgemoralis 5f7b971385 few libc (pow ,_Sin ) for ps4nes 2023-10-19 12:27:28 +03:00
georgemoralis d40728f023 initial fs work (logging mostly) 2023-10-19 12:13:09 +03:00
georgemoralis a45ad0b0f8 some libc HLE functions needed for sonic mania 2023-10-17 18:30:09 +03:00
georgemoralis 7e5719398f atan2f libc HLE 2023-10-17 17:15:08 +03:00
georgemoralis 6db0e0f1c9 cleanup gnmDriver 2023-10-16 20:56:43 +03:00
georgemoralis e78b470668 rewrote libc_cxa 2023-10-16 20:49:52 +03:00
georgemoralis bac05cc010 sceVideoOutClose implementation (partial) 2023-10-16 14:34:12 +03:00
georgemoralis 0f5814418c vsnprintf implementation 2023-10-16 08:55:28 +03:00
Stefanos Kornilios Mitsis Poiitidis 5bdbc3584a stubs: also log return address 2023-10-15 16:09:38 +03:00
georgemoralis e73ae3d586 libc , _Fsin , qsort,free,strncpy,memmove HLE calls 2023-10-15 16:03:55 +03:00
georgemoralis fd2bfc869b refactoring singleton class 2023-10-15 10:03:26 +03:00
georgemoralis 98f773b51e video_out fixes for openBor 2023-10-15 00:31:42 +03:00
georgemoralis 0762f54656 libc strcmp,mallon,strlen implementation 2023-10-15 00:23:01 +03:00
Stefanos Kornilios Mitsis Poiitidis 5570fab8c6 Stubs: Log nids for unknown ones 2023-10-14 19:07:38 +03:00
georgemoralis 661e2e13f9 Merge pull request #53 from georgemoralis/pad
pad implementation
2023-10-13 20:42:15 +03:00
georgemoralis 01e90a85d3 map for dpad keys to emulator 2023-10-13 20:41:03 +03:00
georgemoralis 718d921aa4 pad somehow working 2023-10-13 17:44:15 +03:00
georgemoralis 70487a4fed some work on pad emulation (WIP) 2023-10-13 09:40:59 +03:00
Stefanos Kornilios Mitsis Poiitidis a239ac10f3 Add auto stubs, static init
- Adds a python script to generate the tables, to avoid std::map init
- Generates stub "slots" to provide runtime information when a stub is called
- Provides fallback for unknown stubs
2023-10-11 11:50:02 +03:00
georgemoralis 3b38e27465 added pad functions parameters 2023-10-09 20:39:12 +03:00
georgemoralis ab2e3b3c31 misc 2023-10-09 16:54:10 +03:00
georgemoralis 768972dc89 _ZdlPv , _Znwm needed for breakout homebrew 2023-10-09 12:31:31 +03:00
georgemoralis 04b2eb648d force cpu->gpu sync after flipsubmit . this is not probably correct behaviour but neccesary for niko's homebrew 2023-10-07 17:28:50 +03:00