mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-22 22:09:39 +00:00
Initial commit
This commit is contained in:
parent
1dd94fc4f4
commit
1e81c7fc78
@ -1,2 +1 @@
|
||||
**/vk_mem_alloc.h
|
||||
**/wepoll.*
|
||||
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -119,4 +119,4 @@ jobs:
|
||||
_build/_Install/*
|
||||
!_build/_Install/debug/*
|
||||
!_build/_Install/vulkan-1.dll
|
||||
!_build/_Install/semaphore_test.exe
|
||||
!_build/_Install/*_test.exe
|
||||
|
9
modules/libSceContentExport/CMakeLists.txt
Normal file
9
modules/libSceContentExport/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.24)
|
||||
include(../setupModule.cmake)
|
||||
|
||||
set(libName libSceContentExport)
|
||||
project(${libName})
|
||||
|
||||
add_library(${libName} SHARED entry.cpp)
|
||||
|
||||
setupModule(${libName})
|
8
modules/libSceContentExport/codes.h
Normal file
8
modules/libSceContentExport/codes.h
Normal file
@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Err {
|
||||
namespace ContentExport {
|
||||
constexpr int32_t NOT_IMPLEMENTED = -2137178113;
|
||||
}
|
||||
} // namespace Err
|
20
modules/libSceContentExport/entry.cpp
Normal file
20
modules/libSceContentExport/entry.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include "common.h"
|
||||
#include "logging.h"
|
||||
#include "types.h"
|
||||
|
||||
LOG_DEFINE_MODULE(libSceContentExport);
|
||||
|
||||
namespace {} // namespace
|
||||
|
||||
extern "C" {
|
||||
|
||||
EXPORT const char* MODULE_NAME = "libSceContentExport";
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceContentExportInit(SceContentExportParam* param) {
|
||||
return Err::ContentExport::NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceContentExportInit2(SceContentExportParam* param) {
|
||||
return Err::ContentExport::NOT_IMPLEMENTED;
|
||||
}
|
||||
}
|
20
modules/libSceContentExport/types.h
Normal file
20
modules/libSceContentExport/types.h
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "codes.h"
|
||||
#include "common.h"
|
||||
|
||||
typedef void* SYSV_ABI (*SceContentExportMalloc)(size_t size, void* userData);
|
||||
typedef void SYSV_ABI (*SceContentExportFree)(void* ptr, void* userData);
|
||||
|
||||
struct SceContentExportParam {
|
||||
SceContentExportMalloc mallocFunc;
|
||||
SceContentExportFree freeFunc;
|
||||
void* userData;
|
||||
};
|
||||
|
||||
struct SceContentExportInitParam2 {
|
||||
SceContentExportMalloc mallocfunc;
|
||||
SceContentExportFree freefunc;
|
||||
void* userdata;
|
||||
size_t bufsize;
|
||||
int64_t reserved[2];
|
||||
};
|
@ -39,7 +39,7 @@ EXPORT SYSV_ABI int32_t sceSharePlaySetProhibition(SceSharePlayProhibitionMode m
|
||||
EXPORT SYSV_ABI int32_t sceSharePlayGetCurrentConnectionInfo(SceSharePlayConnectionInfo* pInfo) {
|
||||
LOG_USE_MODULE(libSceSharePlay);
|
||||
|
||||
// *pInfo = {};
|
||||
*pInfo = {};
|
||||
|
||||
LOG_ERR(L"TODO: %S", __FUNCTION__);
|
||||
|
||||
@ -49,7 +49,7 @@ EXPORT SYSV_ABI int32_t sceSharePlayGetCurrentConnectionInfo(SceSharePlayConnect
|
||||
EXPORT SYSV_ABI int32_t sceSharePlayGetCurrentConnectionInfoA(SceSharePlayConnectionInfoA* pInfo) {
|
||||
LOG_USE_MODULE(libSceSharePlay);
|
||||
|
||||
// *pInfo = {};
|
||||
*pInfo = {};
|
||||
|
||||
LOG_ERR(L"TODO: %S", __FUNCTION__);
|
||||
|
||||
|
9
modules/libSceShareUtility/CMakeLists.txt
Normal file
9
modules/libSceShareUtility/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.24)
|
||||
include(../setupModule.cmake)
|
||||
|
||||
set(libName libSceShareUtility)
|
||||
project(${libName})
|
||||
|
||||
add_library(${libName} SHARED entry.cpp)
|
||||
|
||||
setupModule(${libName})
|
17
modules/libSceShareUtility/codes.h
Normal file
17
modules/libSceShareUtility/codes.h
Normal file
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Err {} // namespace Err
|
||||
|
||||
namespace ShareUtility {
|
||||
constexpr int32_t HEAP_SIZE = 131072;
|
||||
constexpr int32_t UPLOAD_CONTENT_MAX = 8192;
|
||||
} // namespace ShareUtility
|
||||
|
||||
enum SceContentSearchMimeType {
|
||||
UNKNOWN = 0,
|
||||
JPEG = 1,
|
||||
MP4 = 2,
|
||||
PNG = 3,
|
||||
GIF = 4,
|
||||
};
|
60
modules/libSceShareUtility/entry.cpp
Normal file
60
modules/libSceShareUtility/entry.cpp
Normal file
@ -0,0 +1,60 @@
|
||||
#include "common.h"
|
||||
#include "logging.h"
|
||||
#include "types.h"
|
||||
|
||||
LOG_DEFINE_MODULE(libSceShareUtility);
|
||||
|
||||
namespace {} // namespace
|
||||
|
||||
extern "C" {
|
||||
|
||||
EXPORT const char* MODULE_NAME = "libSceShareUtility";
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityInitialize(uint64_t funcFlag, size_t heapSize) {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityInitializeEx2(uint64_t funcFlag, size_t heapSize, int threadPriority, SceKernelCpumask affMask) {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityOpenShareMenu(SceContentSearchContentId id, SceContentSearchMimeType type) {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityAdvanceInitialize(uint64_t funcFlag, size_t heapSize, int threadPriority, SceKernelCpumask affMask) {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityOpenShareMenuBroadcast() {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityOpenShareMenuDefault() {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityTerminate() {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityAdvanceTerminate() {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityAdvanceSetUploadContentData(const char* data, size_t size) {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityAdvanceWakeUpShareMenu(SceContentSearchContentId id, SceContentSearchMimeType type) {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityAdvanceWakeUpShareMenuBroadcast() {
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceShareUtilityAdvanceWakeUpShareMenuDefault() {
|
||||
return Ok;
|
||||
}
|
||||
}
|
4
modules/libSceShareUtility/types.h
Normal file
4
modules/libSceShareUtility/types.h
Normal file
@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
#include "codes.h"
|
||||
|
||||
typedef int64_t SceContentSearchContentId;
|
Loading…
Reference in New Issue
Block a user