Skip to content

Commit

Permalink
modules/SceVshBridge: Stub some functions.
Browse files Browse the repository at this point in the history
- Stub vshDisplayRegisterFrameBufCallback and vshSblUtMgrHasComTestFlag.
  • Loading branch information
Macdu authored and Zangetsu38 committed Nov 22, 2024
1 parent f028514 commit db3a83e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion vita3k/modules/SceDisplay/SceDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ struct SceDisplayFrameBuf2 : public SceDisplayFrameBuf {
};

DECL_EXPORT(SceInt32, _sceDisplayGetFrameBuf, SceDisplayFrameBuf *pFrameBuf, SceDisplaySetBufSync sync, uint32_t *pFrameBuf_size);
DECL_EXPORT(SceInt32, _sceDisplaySetFrameBuf, const SceDisplayFrameBuf *pFrameBuf, SceDisplaySetBufSync sync, uint32_t *pFrameBuf_size);
DECL_EXPORT(SceInt32, _sceDisplayGetMaximumFrameBufResolution, SceInt32 *width, SceInt32 *height);
DECL_EXPORT(SceInt32, _sceDisplaySetFrameBuf, const SceDisplayFrameBuf *pFrameBuf, SceDisplaySetBufSync sync, uint32_t *pFrameBuf_size);
DECL_EXPORT(SceInt32, sceDisplayRegisterVblankStartCallback, SceUID uid);
9 changes: 6 additions & 3 deletions vita3k/modules/SceVshBridge/SceVshBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <module/module.h>

#include "../SceDisplay/SceDisplay.h"

EXPORT(int, _vshAppMgrAcInstGetAcdirParam) {
return UNIMPLEMENTED();
}
Expand Down Expand Up @@ -421,8 +423,8 @@ EXPORT(int, vshCtrlUnregisterNotifyCallBack) {
return UNIMPLEMENTED();
}

EXPORT(int, vshDisplayRegisterFrameBufCallback) {
return UNIMPLEMENTED();
EXPORT(SceInt32, vshDisplayRegisterFrameBufCallback, SceUID uid) {
return CALL_EXPORT(sceDisplayRegisterVblankStartCallback, uid);
}

EXPORT(int, vshDisplaySetInvertColors) {
Expand Down Expand Up @@ -746,7 +748,8 @@ EXPORT(int, vshSblSsIsDevelopmentMode) {
}

EXPORT(int, vshSblUtMgrHasComTestFlag) {
return UNIMPLEMENTED();
STUBBED("");
return 1;
}

EXPORT(int, vshSblUtMgrHasNpTestFlag) {
Expand Down

0 comments on commit db3a83e

Please sign in to comment.