some dummy functions and change some functions to debug level

This commit is contained in:
georgemoralis 2024-10-10 12:45:52 +03:00
parent ec3758a077
commit 2f21a69c2b
6 changed files with 32 additions and 8 deletions

View File

@ -59,8 +59,10 @@ int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentBroadcastScreenLayout() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentStatus() { int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentStatus(OrbisGameLiveStreamingStatus* status) {
LOG_ERROR(Lib_GameLiveStreaming, "(STUBBED) called"); status->isOnAir = false;
status->spectatorCounts = 0;
LOG_DEBUG(Lib_GameLiveStreaming, "(STUBBED) called userid = {}",status->userId);
return ORBIS_OK; return ORBIS_OK;
} }

View File

@ -11,6 +11,24 @@ class SymbolsResolver;
namespace Libraries::GameLiveStreaming { namespace Libraries::GameLiveStreaming {
struct OrbisGameLiveStreamingStatus {
bool isOnAir;
u8 align[3];
u32 spectatorCounts;
s32 userId;
u8 reserved[60];
};
struct OrbisGameLiveStreamingStatus2 {
s32 userId;
bool isOnAir;
u8 align[3];
u32 spectatorCounts;
u32 textMessageCounts;
u32 commandMessageCounts;
u32 broadcastVideoResolution;
u8 reserved[48];
};
int PS4_SYSV_ABI sceGameLiveStreamingStartDebugBroadcast(); int PS4_SYSV_ABI sceGameLiveStreamingStartDebugBroadcast();
int PS4_SYSV_ABI sceGameLiveStreamingStopDebugBroadcast(); int PS4_SYSV_ABI sceGameLiveStreamingStopDebugBroadcast();
int PS4_SYSV_ABI sceGameLiveStreamingApplySocialFeedbackMessageFilter(); int PS4_SYSV_ABI sceGameLiveStreamingApplySocialFeedbackMessageFilter();
@ -21,7 +39,7 @@ int PS4_SYSV_ABI sceGameLiveStreamingClearSpoilerTag();
int PS4_SYSV_ABI sceGameLiveStreamingEnableLiveStreaming(); int PS4_SYSV_ABI sceGameLiveStreamingEnableLiveStreaming();
int PS4_SYSV_ABI sceGameLiveStreamingEnableSocialFeedback(); int PS4_SYSV_ABI sceGameLiveStreamingEnableSocialFeedback();
int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentBroadcastScreenLayout(); int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentBroadcastScreenLayout();
int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentStatus(); int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentStatus(OrbisGameLiveStreamingStatus* status);
int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentStatus2(); int PS4_SYSV_ABI sceGameLiveStreamingGetCurrentStatus2();
int PS4_SYSV_ABI sceGameLiveStreamingGetProgramInfo(); int PS4_SYSV_ABI sceGameLiveStreamingGetProgramInfo();
int PS4_SYSV_ABI sceGameLiveStreamingGetSocialFeedbackMessages(); int PS4_SYSV_ABI sceGameLiveStreamingGetSocialFeedbackMessages();

View File

@ -88,7 +88,7 @@ int PS4_SYSV_ABI scePadGetCapability() {
} }
int PS4_SYSV_ABI scePadGetControllerInformation(s32 handle, OrbisPadControllerInformation* pInfo) { int PS4_SYSV_ABI scePadGetControllerInformation(s32 handle, OrbisPadControllerInformation* pInfo) {
LOG_INFO(Lib_Pad, "called handle = {}", handle); LOG_DEBUG(Lib_Pad, "called handle = {}", handle);
if (handle < 0) { if (handle < 0) {
pInfo->touchPadInfo.pixelDensity = 1; pInfo->touchPadInfo.pixelDensity = 1;
pInfo->touchPadInfo.resolution.x = 1920; pInfo->touchPadInfo.resolution.x = 1920;

View File

@ -54,8 +54,8 @@ int PS4_SYSV_ABI sceRemoteplayGetConnectHistory() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceRemoteplayGetConnectionStatus() { int PS4_SYSV_ABI sceRemoteplayGetConnectionStatus(s32 userId, int* pStatus) {
LOG_ERROR(Lib_Remoteplay, "(STUBBED) called"); *pStatus = ORBIS_REMOTEPLAY_CONNECTION_STATUS_DISCONNECT;
return ORBIS_OK; return ORBIS_OK;
} }

View File

@ -9,6 +9,10 @@ namespace Core::Loader {
class SymbolsResolver; class SymbolsResolver;
} }
// returning codes in sceRemoteplayGetConnectionStatus pstatus
constexpr int ORBIS_REMOTEPLAY_CONNECTION_STATUS_DISCONNECT = 0;
constexpr int ORBIS_REMOTEPLAY_CONNECTION_STATUS_CONNECT = 1;
namespace Libraries::Remoteplay { namespace Libraries::Remoteplay {
int PS4_SYSV_ABI sceRemoteplayApprove(); int PS4_SYSV_ABI sceRemoteplayApprove();
@ -20,7 +24,7 @@ int PS4_SYSV_ABI sceRemoteplayDisconnect();
int PS4_SYSV_ABI sceRemoteplayGeneratePinCode(); int PS4_SYSV_ABI sceRemoteplayGeneratePinCode();
int PS4_SYSV_ABI sceRemoteplayGetApMode(); int PS4_SYSV_ABI sceRemoteplayGetApMode();
int PS4_SYSV_ABI sceRemoteplayGetConnectHistory(); int PS4_SYSV_ABI sceRemoteplayGetConnectHistory();
int PS4_SYSV_ABI sceRemoteplayGetConnectionStatus(); int PS4_SYSV_ABI sceRemoteplayGetConnectionStatus(s32 userId, int* pStatus);
int PS4_SYSV_ABI sceRemoteplayGetConnectUserId(); int PS4_SYSV_ABI sceRemoteplayGetConnectUserId();
int PS4_SYSV_ABI sceRemoteplayGetMbusDeviceInfo(); int PS4_SYSV_ABI sceRemoteplayGetMbusDeviceInfo();
int PS4_SYSV_ABI sceRemoteplayGetOperationStatus(); int PS4_SYSV_ABI sceRemoteplayGetOperationStatus();

View File

@ -491,7 +491,7 @@ int PS4_SYSV_ABI sceUserServiceGetImeRunCount() {
} }
s32 PS4_SYSV_ABI sceUserServiceGetInitialUser(int* user_id) { s32 PS4_SYSV_ABI sceUserServiceGetInitialUser(int* user_id) {
LOG_INFO(Lib_UserService, "called"); LOG_DEBUG(Lib_UserService, "called");
if (user_id == nullptr) { if (user_id == nullptr) {
LOG_ERROR(Lib_UserService, "user_id is null"); LOG_ERROR(Lib_UserService, "user_id is null");
return ORBIS_USER_SERVICE_ERROR_INVALID_ARGUMENT; return ORBIS_USER_SERVICE_ERROR_INVALID_ARGUMENT;