Initial commit

This commit is contained in:
igor725 2024-04-30 14:14:35 +03:00
parent 1dd94fc4f4
commit 1e81c7fc78
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D
11 changed files with 150 additions and 4 deletions

View File

@ -1,2 +1 @@
**/vk_mem_alloc.h
**/wepoll.*

View File

@ -119,4 +119,4 @@ jobs:
_build/_Install/*
!_build/_Install/debug/*
!_build/_Install/vulkan-1.dll
!_build/_Install/semaphore_test.exe
!_build/_Install/*_test.exe

View 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})

View File

@ -0,0 +1,8 @@
#pragma once
#include <stdint.h>
namespace Err {
namespace ContentExport {
constexpr int32_t NOT_IMPLEMENTED = -2137178113;
}
} // namespace Err

View 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;
}
}

View 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];
};

View File

@ -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__);

View 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})

View 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,
};

View 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;
}
}

View File

@ -0,0 +1,4 @@
#pragma once
#include "codes.h"
typedef int64_t SceContentSearchContentId;