Stubs and functions

This commit is contained in:
igor725 2024-04-13 18:05:59 +03:00
parent 403d0a02ba
commit 8520d0a79c
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D
9 changed files with 70 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,2 @@
#pragma once
#include "codes.h"

View File

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

View File

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

View File

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

View File

@ -0,0 +1,2 @@
#pragma once
#include "codes.h"