video_out: sceVideoOutSubmitEopFlip stub added

This commit is contained in:
psucien 2024-05-08 22:54:34 +02:00
parent 4746f514ff
commit c7cfe2622d
2 changed files with 13 additions and 0 deletions

View file

@ -216,6 +216,17 @@ void sceVideoOutGetBufferLabelAddress(s32 handle, uintptr_t* label_addr) {
*label_addr = reinterpret_cast<uintptr_t>(port->buffer_labels.data());
}
s32 sceVideoOutSubmitEopFlip(s32 handle, u32 buf_id, u32 mode, u32 arg, void* unk) {
auto* port = driver->GetPort(handle);
if (!port) {
return 0x8029000b;
}
// TODO
return ORBIS_OK;
}
void RegisterLib(Core::Loader::SymbolsResolver* sym) {
driver = std::make_unique<VideoOutDriver>(Config::getScreenWidth(), Config::getScreenHeight());

View file

@ -102,7 +102,9 @@ s32 PS4_SYSV_ABI sceVideoOutClose(s32 handle);
void Flip(std::chrono::microseconds micros);
void Vblank();
// Internal system functions
void sceVideoOutGetBufferLabelAddress(s32 handle, uintptr_t* label_addr);
s32 sceVideoOutSubmitEopFlip(s32 handle, u32 buf_id, u32 mode, u32 arg, void* unk);
void RegisterLib(Core::Loader::SymbolsResolver* sym);