mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-23 06:19:41 +00:00
Fixes and stubs
This commit is contained in:
parent
9ce2ca6d3c
commit
d1433f1028
@ -474,7 +474,7 @@ int mutexDestroy(ScePthreadMutex* mutex) {
|
|||||||
|
|
||||||
auto mutexInit_intern(const ScePthreadMutexattr* attr) {
|
auto mutexInit_intern(const ScePthreadMutexattr* attr) {
|
||||||
auto mutex = std::make_unique<PthreadMutexPrivate>().release();
|
auto mutex = std::make_unique<PthreadMutexPrivate>().release();
|
||||||
if (attr != nullptr) mutex->type = (*attr)->type;
|
if (attr != nullptr && *attr != nullptr) mutex->type = (*attr)->type;
|
||||||
mutex->id = mutexCounter();
|
mutex->id = mutexCounter();
|
||||||
LOG_USE_MODULE(pthread);
|
LOG_USE_MODULE(pthread);
|
||||||
// LOG_DEBUG(L"mutex ini| id:%llu type:%d", mutex->id, (int)mutex->type);
|
// LOG_DEBUG(L"mutex ini| id:%llu type:%d", mutex->id, (int)mutex->type);
|
||||||
|
@ -296,4 +296,8 @@ EXPORT SYSV_ABI int32_t sceAudioOutGetSystemState(SceAudioOutSystemState* state)
|
|||||||
EXPORT SYSV_ABI int32_t sceAudioOutSetSystemDebugState(SceAudioOutSystemDebugStateElement elem, SceAudioOutSystemDebugStateParam* param) {
|
EXPORT SYSV_ABI int32_t sceAudioOutSetSystemDebugState(SceAudioOutSystemDebugStateElement elem, SceAudioOutSystemDebugStateParam* param) {
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EXPORT SYSV_ABI int32_t sceAudioOutMasteringTerm() {
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
9
modules/libkernel_cpumode_platform/CMakeLists.txt
Normal file
9
modules/libkernel_cpumode_platform/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.24)
|
||||||
|
include(../setupModule.cmake)
|
||||||
|
|
||||||
|
set(libName libkernel_cpumode_platform)
|
||||||
|
project(${libName})
|
||||||
|
|
||||||
|
add_library(${libName} SHARED entry.cpp)
|
||||||
|
|
||||||
|
setupModule(${libName})
|
4
modules/libkernel_cpumode_platform/codes.h
Normal file
4
modules/libkernel_cpumode_platform/codes.h
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
namespace Err {} // namespace Err
|
16
modules/libkernel_cpumode_platform/entry.cpp
Normal file
16
modules/libkernel_cpumode_platform/entry.cpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#include "common.h"
|
||||||
|
#include "logging.h"
|
||||||
|
#include "types.h"
|
||||||
|
|
||||||
|
LOG_DEFINE_MODULE(libkernel_cpumode_platform);
|
||||||
|
|
||||||
|
namespace {} // namespace
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
EXPORT const char* MODULE_NAME = "libkernel";
|
||||||
|
|
||||||
|
EXPORT SYSV_ABI int32_t sceKernelIsProspero() {
|
||||||
|
return 0; // PS5
|
||||||
|
}
|
||||||
|
}
|
2
modules/libkernel_cpumode_platform/types.h
Normal file
2
modules/libkernel_cpumode_platform/types.h
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "codes.h"
|
Loading…
Reference in New Issue
Block a user