From 8520d0a79cd3d64cec4d9043f09cc0eebcda00c6 Mon Sep 17 00:00:00 2001 From: igor725 Date: Sat, 13 Apr 2024 18:05:59 +0300 Subject: [PATCH] Stubs and functions --- modules/libSceLibcInternal/entry.cpp | 8 ++++++++ modules/libSceNetCtlForNpToolkit/CMakeLists.txt | 9 +++++++++ modules/libSceNetCtlForNpToolkit/codes.h | 4 ++++ modules/libSceNetCtlForNpToolkit/entry.cpp | 16 ++++++++++++++++ modules/libSceNetCtlForNpToolkit/types.h | 2 ++ .../libSceUserServiceForNpToolkit/CMakeLists.txt | 9 +++++++++ modules/libSceUserServiceForNpToolkit/codes.h | 4 ++++ modules/libSceUserServiceForNpToolkit/entry.cpp | 16 ++++++++++++++++ modules/libSceUserServiceForNpToolkit/types.h | 2 ++ 9 files changed, 70 insertions(+) create mode 100644 modules/libSceNetCtlForNpToolkit/CMakeLists.txt create mode 100644 modules/libSceNetCtlForNpToolkit/codes.h create mode 100644 modules/libSceNetCtlForNpToolkit/entry.cpp create mode 100644 modules/libSceNetCtlForNpToolkit/types.h create mode 100644 modules/libSceUserServiceForNpToolkit/CMakeLists.txt create mode 100644 modules/libSceUserServiceForNpToolkit/codes.h create mode 100644 modules/libSceUserServiceForNpToolkit/entry.cpp create mode 100644 modules/libSceUserServiceForNpToolkit/types.h diff --git a/modules/libSceLibcInternal/entry.cpp b/modules/libSceLibcInternal/entry.cpp index 4c0edc4..c54f780 100644 --- a/modules/libSceLibcInternal/entry.cpp +++ b/modules/libSceLibcInternal/entry.cpp @@ -101,6 +101,14 @@ EXPORT SYSV_ABI float __NID(expf)(float val) { return std::expf(val); } +EXPORT SYSV_ABI float __NID(sinf)(float val) { + return std::sinf(val); +} + +EXPORT SYSV_ABI float __NID(cosf)(float val) { + return std::cosf(val); +} + EXPORT SYSV_ABI int __NID(setjmp)(unwinding_jmp_buf* jb) { return 0; } diff --git a/modules/libSceNetCtlForNpToolkit/CMakeLists.txt b/modules/libSceNetCtlForNpToolkit/CMakeLists.txt new file mode 100644 index 0000000..8e4a2c3 --- /dev/null +++ b/modules/libSceNetCtlForNpToolkit/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.24) +include(../setupModule.cmake) + +set(libName libSceNetCtlForNpToolkit) +project(${libName}) + +add_library(${libName} SHARED entry.cpp) + +setupModule(${libName}) diff --git a/modules/libSceNetCtlForNpToolkit/codes.h b/modules/libSceNetCtlForNpToolkit/codes.h new file mode 100644 index 0000000..f158822 --- /dev/null +++ b/modules/libSceNetCtlForNpToolkit/codes.h @@ -0,0 +1,4 @@ +#pragma once +#include + +namespace Err {} // namespace Err \ No newline at end of file diff --git a/modules/libSceNetCtlForNpToolkit/entry.cpp b/modules/libSceNetCtlForNpToolkit/entry.cpp new file mode 100644 index 0000000..5f89c3c --- /dev/null +++ b/modules/libSceNetCtlForNpToolkit/entry.cpp @@ -0,0 +1,16 @@ +#include "common.h" +#include "logging.h" +#include "types.h" + +LOG_DEFINE_MODULE(libSceNetCtlForNpToolkit); + +namespace {} // namespace + +extern "C" { + +EXPORT const char* MODULE_NAME = "libSceNetCtl"; + +EXPORT SYSV_ABI int sceNetCtlRegisterCallbackForNpToolkit() { + return Ok; +} +} diff --git a/modules/libSceNetCtlForNpToolkit/types.h b/modules/libSceNetCtlForNpToolkit/types.h new file mode 100644 index 0000000..7832fd4 --- /dev/null +++ b/modules/libSceNetCtlForNpToolkit/types.h @@ -0,0 +1,2 @@ +#pragma once +#include "codes.h" diff --git a/modules/libSceUserServiceForNpToolkit/CMakeLists.txt b/modules/libSceUserServiceForNpToolkit/CMakeLists.txt new file mode 100644 index 0000000..aaff8cf --- /dev/null +++ b/modules/libSceUserServiceForNpToolkit/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.24) +include(../setupModule.cmake) + +set(libName libSceUserServiceForNpToolkit) +project(${libName}) + +add_library(${libName} SHARED entry.cpp) + +setupModule(${libName}) diff --git a/modules/libSceUserServiceForNpToolkit/codes.h b/modules/libSceUserServiceForNpToolkit/codes.h new file mode 100644 index 0000000..f158822 --- /dev/null +++ b/modules/libSceUserServiceForNpToolkit/codes.h @@ -0,0 +1,4 @@ +#pragma once +#include + +namespace Err {} // namespace Err \ No newline at end of file diff --git a/modules/libSceUserServiceForNpToolkit/entry.cpp b/modules/libSceUserServiceForNpToolkit/entry.cpp new file mode 100644 index 0000000..5b82e09 --- /dev/null +++ b/modules/libSceUserServiceForNpToolkit/entry.cpp @@ -0,0 +1,16 @@ +#include "common.h" +#include "logging.h" +#include "types.h" + +LOG_DEFINE_MODULE(libSceUserServiceForNpToolkit); + +namespace {} // namespace + +extern "C" { + +EXPORT const char* MODULE_NAME = "libSceUserService"; + +EXPORT SYSV_ABI int sceUserServiceRegisterEventCallback() { + return Ok; +} +} diff --git a/modules/libSceUserServiceForNpToolkit/types.h b/modules/libSceUserServiceForNpToolkit/types.h new file mode 100644 index 0000000..7832fd4 --- /dev/null +++ b/modules/libSceUserServiceForNpToolkit/types.h @@ -0,0 +1,2 @@ +#pragma once +#include "codes.h"