Skip to content

Commit

Permalink
modules/SceDisplayUser: stub sceDisplaySetFrameBufInternal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Macdu authored and Zangetsu38 committed Nov 3, 2024
1 parent 7f7a4b5 commit f56da8f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vita3k/modules/SceDriverUser/SceDisplayUser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ EXPORT(int, sceDisplaySetFrameBufForCompat) {
return UNIMPLEMENTED();
}

EXPORT(int, sceDisplaySetFrameBufInternal) {
TRACY_FUNC(sceDisplaySetFrameBufInternal);
return UNIMPLEMENTED();
EXPORT(int, sceDisplaySetFrameBufInternal, uint32_t maybe_buffer_idx, uint32_t unkn, SceDisplayFrameBuf *pFrameBuf, SceDisplaySetBufSync sync) {
TRACY_FUNC(sceDisplaySetFrameBufInternal, maybe_buffer_idx, unkn, pFrameBuf, sync);
// only render for frame buffer 0 or we'll get double fps
if (maybe_buffer_idx != 0)
return 0;

return CALL_EXPORT(_sceDisplaySetFrameBuf, pFrameBuf, sync, nullptr);
}

0 comments on commit f56da8f

Please sign in to comment.