Stub some funcs

This commit is contained in:
igor725 2024-04-14 16:04:54 +03:00
parent f141f3b760
commit df1d6cff3c
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D
23 changed files with 297 additions and 2 deletions

View File

@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.24)
include(../setupModule.cmake)
set(libName libSceAudio3d)
project(${libName})
add_library(${libName} SHARED entry.cpp)
setupModule(${libName})

View File

@ -0,0 +1,6 @@
#pragma once
#include <stdint.h>
namespace Err {
constexpr int32_t OUT_OF_RESOURCES = -2132148218;
} // namespace Err

View File

@ -0,0 +1,68 @@
#include "common.h"
#include "logging.h"
#include "types.h"
LOG_DEFINE_MODULE(libSceAudio3d);
namespace {} // namespace
extern "C" {
EXPORT const char* MODULE_NAME = "libSceAudio3d";
EXPORT SYSV_ABI int32_t sceAudio3dInitialize(int64_t) {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dPortOpen(int32_t userId, const SceAudio3dOpenParameters* params, SceAudio3dPortId* id) {
return Err::OUT_OF_RESOURCES;
}
EXPORT SYSV_ABI int32_t sceAudio3dPortClose() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dPortPush() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dObjectReserve() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dObjectSetAttributes() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dObjectUnreserve() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dBedWrite() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dGetDefaultOpenParameters() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dPortAdvance() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dPortFlush() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dPortGetQueueLevel() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dPortSetAttribute() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceAudio3dTerminate() {
return Ok;
}
}

View File

@ -0,0 +1,6 @@
#pragma once
#include "codes.h"
typedef unsigned int SceAudio3dPortId;
struct SceAudio3dOpenParameters {};

View File

@ -42,4 +42,22 @@ EXPORT SYSV_ABI int32_t sceGameLiveStreamingGetCurrentStatus2(SceGameLiveStreami
glss2->userId = 1; glss2->userId = 1;
return Ok; return Ok;
} }
EXPORT SYSV_ABI int32_t sceGameLiveStreamingEnableLiveStreaming(bool isStreamActive) {
LOG_USE_MODULE(libSceGameLiveStreaming);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI int32_t sceGameLiveStreamingSetGuardAreas(size_t areaCount, const SceGameLiveStreamingGuardArea* areas) {
LOG_USE_MODULE(libSceGameLiveStreaming);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI int32_t sceGameLiveStreamingTerminate() {
LOG_USE_MODULE(libSceGameLiveStreaming);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
} }

View File

@ -24,3 +24,7 @@ struct SceGameLiveStreamingStatus2 {
SceGameLiveStreamingVideoResolution broadcastVideoResolution; SceGameLiveStreamingVideoResolution broadcastVideoResolution;
uint8_t reserved[48]; uint8_t reserved[48];
}; };
struct SceGameLiveStreamingGuardArea {
float _flt[4];
};

View File

@ -14,7 +14,7 @@ EXPORT SYSV_ABI int32_t sceHttp2Init() {
} }
// can be removed with more functions // can be removed with more functions
EXPORT SYSV_ABI int32_t sceDummyFUNCTION_1() { EXPORT SYSV_ABI int32_t __DUMMY(FUNCTION_1)() {
return Ok; return Ok;
} }
} }

View File

@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.24)
include(../setupModule.cmake)
set(libName libSceInvitationDialog)
project(${libName})
add_library(${libName} SHARED entry.cpp)
setupModule(${libName})

View File

@ -0,0 +1,4 @@
#pragma once
#include <stdint.h>
namespace Err {} // namespace Err

View File

@ -0,0 +1,34 @@
#include "codes.h"
#include "common.h"
#include "logging.h"
#include "types.h"
LOG_DEFINE_MODULE(libSceInvitationDialog);
namespace {
static SceCommonDialogStatus g_curStatus = SceCommonDialogStatus::NONE;
} // namespace
extern "C" {
EXPORT const char* MODULE_NAME = "libSceInvitationDialog";
EXPORT SYSV_ABI int32_t sceInvitationDialogInitialize() {
g_curStatus = SceCommonDialogStatus::INITIALIZED;
return Ok;
}
EXPORT SYSV_ABI int32_t sceInvitationDialogTerminate(void) {
g_curStatus = SceCommonDialogStatus::NONE;
return Ok;
}
EXPORT SYSV_ABI SceCommonDialogStatus sceInvitationDialogUpdateStatus(void) {
return g_curStatus;
}
EXPORT SYSV_ABI int32_t sceInvitationDialogOpen(const void* param) {
g_curStatus = SceCommonDialogStatus::FINISHED;
return Ok;
}
}

View File

@ -0,0 +1,3 @@
#pragma once
#include "..\libSceCommonDialog\types.h"
#include "codes.h"

View File

@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.24)
include(../setupModule.cmake)
set(libName libSceNpCommon)
project(${libName})
add_library(${libName} SHARED entry.cpp)
setupModule(${libName})

View File

@ -0,0 +1,4 @@
#pragma once
#include <stdint.h>
namespace Err {} // namespace Err

View File

@ -0,0 +1,19 @@
#include "codes.h"
#include "common.h"
#include "logging.h"
#include "types.h"
LOG_DEFINE_MODULE(libSceNpCommon);
namespace {} // namespace
extern "C" {
EXPORT const char* MODULE_NAME = "libSceNpCommon";
EXPORT SYSV_ABI void __DUMMY(FUNCTION_1)() {}
EXPORT SYSV_ABI int32_t sceNpCmpNpId() {
return Ok;
}
}

View File

@ -0,0 +1,3 @@
#pragma once
#include "..\libSceCommonDialog\types.h"
#include "codes.h"

View File

@ -31,6 +31,11 @@ EXPORT SYSV_ABI SceCommonDialogStatus sceNpProfileDialogGetStatus(void) {
return g_curStatus; return g_curStatus;
} }
EXPORT SYSV_ABI int32_t sceNpProfileDialogOpen(const void* param) {
g_curStatus = SceCommonDialogStatus::FINISHED;
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpProfileDialogOpenA(const void* param) { EXPORT SYSV_ABI int32_t sceNpProfileDialogOpenA(const void* param) {
g_curStatus = SceCommonDialogStatus::FINISHED; g_curStatus = SceCommonDialogStatus::FINISHED;
return Ok; return Ok;

View File

@ -104,6 +104,12 @@ EXPORT SYSV_ABI int sceNpScoreGetRankingByNpId() {
return Ok; return Ok;
} }
EXPORT SYSV_ABI int sceNpScoreGetRankingByNpIdAsync() {
LOG_USE_MODULE(libSceNpScore);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI int sceNpScoreGetRankingByAccountId(int32_t reqId, SceNpScoreBoardId boardId, const SceNpAccountId accountIdArray[], size_t accountIdArraySize, EXPORT SYSV_ABI int sceNpScoreGetRankingByAccountId(int32_t reqId, SceNpScoreBoardId boardId, const SceNpAccountId accountIdArray[], size_t accountIdArraySize,
SceNpScorePlayerRankDataA* rankArray, size_t rankArraySize, SceNpScoreComment* commentArray, SceNpScorePlayerRankDataA* rankArray, size_t rankArraySize, SceNpScoreComment* commentArray,
size_t commentArraySize, SceNpScoreGameInfo* infoArray, size_t infoArraySize, size_t arrayNum, size_t commentArraySize, SceNpScoreGameInfo* infoArray, size_t infoArraySize, size_t arrayNum,
@ -272,6 +278,12 @@ EXPORT SYSV_ABI int sceNpScoreGetFriendsRanking(/*int32_t reqId, SceNpScoreBoard
return Ok; return Ok;
} }
EXPORT SYSV_ABI int sceNpScoreGetFriendsRankingAsync() {
LOG_USE_MODULE(libSceNpScore);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI int sceNpScoreGetFriendsRankingA(int32_t reqId, SceNpScoreBoardId boardId, int32_t includeSelf, SceNpScoreRankDataA* rankArray, EXPORT SYSV_ABI int sceNpScoreGetFriendsRankingA(int32_t reqId, SceNpScoreBoardId boardId, int32_t includeSelf, SceNpScoreRankDataA* rankArray,
size_t rankArraySize, SceNpScoreComment* commentArray, size_t commentArraySize, SceNpScoreGameInfo* infoArray, size_t rankArraySize, SceNpScoreComment* commentArray, size_t commentArraySize, SceNpScoreGameInfo* infoArray,
size_t infoArraySize, size_t arrayNum, SceRtcTick* lastSortDate, SceNpScoreRankNumber* totalRecord, size_t infoArraySize, size_t arrayNum, SceRtcTick* lastSortDate, SceNpScoreRankNumber* totalRecord,
@ -321,4 +333,16 @@ EXPORT SYSV_ABI int sceNpScoreSanitizeCommentAsync(int32_t reqId, const char* co
LOG_ERR(L"todo %S", __FUNCTION__); LOG_ERR(L"todo %S", __FUNCTION__);
return Ok; return Ok;
} }
EXPORT SYSV_ABI int sceNpScoreGetRankingByRange() {
LOG_USE_MODULE(libSceNpScore);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI int sceNpScoreGetRankingByRangeAsync() {
LOG_USE_MODULE(libSceNpScore);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
} }

View File

@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.24)
include(../setupModule.cmake)
set(libName libSceNpTus)
project(${libName})
add_library(${libName} SHARED entry.cpp)
setupModule(${libName})

View File

@ -0,0 +1,4 @@
#pragma once
#include <stdint.h>
namespace Err {} // namespace Err

View File

@ -0,0 +1,49 @@
#include "codes.h"
#include "common.h"
#include "logging.h"
#include "types.h"
LOG_DEFINE_MODULE(libSceNpTus);
namespace {} // namespace
extern "C" {
EXPORT const char* MODULE_NAME = "libSceNpTus";
EXPORT SYSV_ABI int32_t sceNpTusAddAndGetVariableAsync() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusCreateNpTitleCtx() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusCreateRequest() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusDeleteNpTitleCtx() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusDeleteRequest() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusGetMultiSlotVariableAsync() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusPollAsync() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusSetMultiSlotVariableAsync() {
return Ok;
}
EXPORT SYSV_ABI int32_t sceNpTusTryAndSetVariableAsync() {
return Ok;
}
}

View File

@ -0,0 +1,3 @@
#pragma once
#include "..\libSceCommonDialog\types.h"
#include "codes.h"

View File

@ -152,4 +152,8 @@ EXPORT SYSV_ABI void sceNpWebApiCheckTimeout(void) {}
EXPORT SYSV_ABI int32_t sceNpWebApiUtilityParseNpId(const char* pJsonNpId, SceNpId* pNpId) { EXPORT SYSV_ABI int32_t sceNpWebApiUtilityParseNpId(const char* pJsonNpId, SceNpId* pNpId) {
return Ok; return Ok;
} }
}
EXPORT SYSV_ABI int32_t sceNpWebApiCreateContext(int32_t libCtxId, SceUserServiceUserId userId) {
return Ok;
}
}

View File

@ -160,6 +160,7 @@ constexpr int getErr(ErrCode err) {
#define __NID_HEX_(hexId, funcName) __hex_##hexId #define __NID_HEX_(hexId, funcName) __hex_##hexId
#define __NID_HEX(hexId) __hex_##hexId #define __NID_HEX(hexId) __hex_##hexId
#define __NID(func) __sce_##func #define __NID(func) __sce_##func
#define __DUMMY(func) __sce_##func
static void ns2timespec(SceKernelTimespec* ts, uint64_t const ns) { static void ns2timespec(SceKernelTimespec* ts, uint64_t const ns) {
ts->tv_sec = (decltype(ts->tv_sec))(ns / 1000000000l); ts->tv_sec = (decltype(ts->tv_sec))(ns / 1000000000l);