mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-22 22:09:39 +00:00
Stub some funcs
This commit is contained in:
parent
f141f3b760
commit
df1d6cff3c
9
modules/libSceAudio3d/CMakeLists.txt
Normal file
9
modules/libSceAudio3d/CMakeLists.txt
Normal 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})
|
6
modules/libSceAudio3d/codes.h
Normal file
6
modules/libSceAudio3d/codes.h
Normal file
@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Err {
|
||||
constexpr int32_t OUT_OF_RESOURCES = -2132148218;
|
||||
} // namespace Err
|
68
modules/libSceAudio3d/entry.cpp
Normal file
68
modules/libSceAudio3d/entry.cpp
Normal 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;
|
||||
}
|
||||
}
|
6
modules/libSceAudio3d/types.h
Normal file
6
modules/libSceAudio3d/types.h
Normal file
@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
#include "codes.h"
|
||||
|
||||
typedef unsigned int SceAudio3dPortId;
|
||||
|
||||
struct SceAudio3dOpenParameters {};
|
@ -42,4 +42,22 @@ EXPORT SYSV_ABI int32_t sceGameLiveStreamingGetCurrentStatus2(SceGameLiveStreami
|
||||
glss2->userId = 1;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -24,3 +24,7 @@ struct SceGameLiveStreamingStatus2 {
|
||||
SceGameLiveStreamingVideoResolution broadcastVideoResolution;
|
||||
uint8_t reserved[48];
|
||||
};
|
||||
|
||||
struct SceGameLiveStreamingGuardArea {
|
||||
float _flt[4];
|
||||
};
|
||||
|
@ -14,7 +14,7 @@ EXPORT SYSV_ABI int32_t sceHttp2Init() {
|
||||
}
|
||||
|
||||
// can be removed with more functions
|
||||
EXPORT SYSV_ABI int32_t sceDummyFUNCTION_1() {
|
||||
EXPORT SYSV_ABI int32_t __DUMMY(FUNCTION_1)() {
|
||||
return Ok;
|
||||
}
|
||||
}
|
||||
|
9
modules/libSceInvitationDialog/CMakeLists.txt
Normal file
9
modules/libSceInvitationDialog/CMakeLists.txt
Normal 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})
|
4
modules/libSceInvitationDialog/codes.h
Normal file
4
modules/libSceInvitationDialog/codes.h
Normal file
@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Err {} // namespace Err
|
34
modules/libSceInvitationDialog/entry.cpp
Normal file
34
modules/libSceInvitationDialog/entry.cpp
Normal 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;
|
||||
}
|
||||
}
|
3
modules/libSceInvitationDialog/types.h
Normal file
3
modules/libSceInvitationDialog/types.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
#include "..\libSceCommonDialog\types.h"
|
||||
#include "codes.h"
|
9
modules/libSceNpCommon/CMakeLists.txt
Normal file
9
modules/libSceNpCommon/CMakeLists.txt
Normal 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})
|
4
modules/libSceNpCommon/codes.h
Normal file
4
modules/libSceNpCommon/codes.h
Normal file
@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Err {} // namespace Err
|
19
modules/libSceNpCommon/entry.cpp
Normal file
19
modules/libSceNpCommon/entry.cpp
Normal 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;
|
||||
}
|
||||
}
|
3
modules/libSceNpCommon/types.h
Normal file
3
modules/libSceNpCommon/types.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
#include "..\libSceCommonDialog\types.h"
|
||||
#include "codes.h"
|
@ -31,6 +31,11 @@ EXPORT SYSV_ABI SceCommonDialogStatus sceNpProfileDialogGetStatus(void) {
|
||||
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) {
|
||||
g_curStatus = SceCommonDialogStatus::FINISHED;
|
||||
return Ok;
|
||||
|
@ -104,6 +104,12 @@ EXPORT SYSV_ABI int sceNpScoreGetRankingByNpId() {
|
||||
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,
|
||||
SceNpScorePlayerRankDataA* rankArray, size_t rankArraySize, SceNpScoreComment* commentArray,
|
||||
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;
|
||||
}
|
||||
|
||||
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,
|
||||
size_t rankArraySize, SceNpScoreComment* commentArray, size_t commentArraySize, SceNpScoreGameInfo* infoArray,
|
||||
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__);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
9
modules/libSceNpTus/CMakeLists.txt
Normal file
9
modules/libSceNpTus/CMakeLists.txt
Normal 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})
|
4
modules/libSceNpTus/codes.h
Normal file
4
modules/libSceNpTus/codes.h
Normal file
@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Err {} // namespace Err
|
49
modules/libSceNpTus/entry.cpp
Normal file
49
modules/libSceNpTus/entry.cpp
Normal 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;
|
||||
}
|
||||
}
|
3
modules/libSceNpTus/types.h
Normal file
3
modules/libSceNpTus/types.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
#include "..\libSceCommonDialog\types.h"
|
||||
#include "codes.h"
|
@ -152,4 +152,8 @@ EXPORT SYSV_ABI void sceNpWebApiCheckTimeout(void) {}
|
||||
EXPORT SYSV_ABI int32_t sceNpWebApiUtilityParseNpId(const char* pJsonNpId, SceNpId* pNpId) {
|
||||
return Ok;
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceNpWebApiCreateContext(int32_t libCtxId, SceUserServiceUserId userId) {
|
||||
return Ok;
|
||||
}
|
||||
}
|
||||
|
@ -160,6 +160,7 @@ constexpr int getErr(ErrCode err) {
|
||||
#define __NID_HEX_(hexId, funcName) __hex_##hexId
|
||||
#define __NID_HEX(hexId) __hex_##hexId
|
||||
#define __NID(func) __sce_##func
|
||||
#define __DUMMY(func) __sce_##func
|
||||
|
||||
static void ns2timespec(SceKernelTimespec* ts, uint64_t const ns) {
|
||||
ts->tv_sec = (decltype(ts->tv_sec))(ns / 1000000000l);
|
||||
|
Loading…
Reference in New Issue
Block a user