some more functions definations for openorbis graphics demo

This commit is contained in:
georgemoralis 2023-10-10 09:22:18 +03:00
parent c0249a6bc5
commit 1f52d89dd4
2 changed files with 21 additions and 4 deletions

View File

@ -303,5 +303,16 @@ void videoOutRegisterLib(SymbolsResolver* sym) {
LIB_FUNCTION("6kPnj51T62Y", "libSceVideoOut", 1, "libSceVideoOut", 0, 0, sceVideoOutGetResolutionStatus);
LIB_FUNCTION("Up36PTk687E", "libSceVideoOut", 1, "libSceVideoOut", 0, 0, sceVideoOutOpen);
LIB_FUNCTION("zgXifHT9ErY", "libSceVideoOut", 1, "libSceVideoOut", 0, 0, sceVideoOutIsFlipPending);
//openOrbis appears to have libSceVideoOut_v1 module libSceVideoOut_v1.1
LIB_FUNCTION("Up36PTk687E", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutOpen);
LIB_FUNCTION("CBiu4mCE1DA", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutSetFlipRate);
LIB_FUNCTION("HXzjK9yI30k", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutAddFlipEvent);
LIB_FUNCTION("i6-sR91Wt-4", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutSetBufferAttribute);
LIB_FUNCTION("w3BY+tAEiQY", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutRegisterBuffers);
LIB_FUNCTION("U46NwOiJpys", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutSubmitFlip);
LIB_FUNCTION("SbU3dwp80lQ", "libSceVideoOut", 1, "libSceVideoOut", 1, 1, sceVideoOutGetFlipStatus);
}
} // namespace HLE::Libs::Graphics::VideoOut

View File

@ -117,6 +117,11 @@ int PS4_SYSV_ABI pthread_key_create(ThreadManagement::ScePthreadKey* key, Thread
}
PS4_SYSV_ABI void pthread_cond_signal() { BREAKPOINT(); }
PS4_SYSV_ABI void _open() { BREAKPOINT(); }
PS4_SYSV_ABI void _fcntl() { BREAKPOINT(); }
PS4_SYSV_ABI void _readv() { BREAKPOINT(); }
PS4_SYSV_ABI void _read() { BREAKPOINT(); }
}; // namespace POSIX
PS4_SYSV_ABI void poll() { BREAKPOINT(); }
@ -128,7 +133,6 @@ PS4_SYSV_ABI void sceKernelUsleep(unsigned int microseconds) {
// BREAKPOINT();
}
#define PROT_READ 0x1
#define PROT_WRITE 0x2
@ -174,8 +178,6 @@ PS4_SYSV_ABI void* mmap(void* addr, u64 len, int prot, int flags, int fd, u64 of
PS4_SYSV_ABI void close() { BREAKPOINT(); }
PS4_SYSV_ABI void madvise() { BREAKPOINT(); }
struct iovec {
void* iov_base; /* Base address. */
@ -270,6 +272,10 @@ void LibKernel_Register(SymbolsResolver* sym) {
LIB_FUNCTION("0t0-MxQNwK4", "libkernel", 1, "libkernel", 1, 1, raise);
LIB_FUNCTION("2MOy+rUfuhQ", "libkernel", 1, "libkernel", 1, 1, POSIX::pthread_cond_signal);
LIB_FUNCTION("wW+k21cmbwQ", "libkernel", 1, "libkernel", 1, 1, _ioctl);
LIB_FUNCTION("6c3rCVE-fTU", "libkernel", 1, "libkernel", 1, 1, POSIX::_open);
LIB_FUNCTION("t0fXUzq61Z4", "libkernel", 1, "libkernel", 1, 1, POSIX::_fcntl);
LIB_FUNCTION("+WRlkKjZvag", "libkernel", 1, "libkernel", 1, 1, POSIX::_readv);
LIB_FUNCTION("DRuBt2pvICk", "libkernel", 1, "libkernel", 1, 1, POSIX::_read);
}
}; // namespace HLE::Libs::LibKernel