mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-23 06:19:41 +00:00
+
This commit is contained in:
parent
5b83e13a70
commit
05dd04b756
@ -5,8 +5,8 @@
|
||||
#include "logging.h"
|
||||
#include "utility/utility.h"
|
||||
|
||||
#include <windows.h>
|
||||
#include <mutex>
|
||||
#include <windows.h>
|
||||
|
||||
LOG_DEFINE_MODULE(memory);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include <array>
|
||||
#include <stdint.h>
|
||||
#include <mutex>
|
||||
#include <stdint.h>
|
||||
|
||||
constexpr int SceProtRead = 1;
|
||||
constexpr int SceProtWrite = 2;
|
||||
@ -27,13 +27,13 @@ struct _t_hook {
|
||||
};
|
||||
|
||||
class VirtualLock {
|
||||
public:
|
||||
int check_mmaped(void* addr, size_t len);
|
||||
public:
|
||||
int check_mmaped(void* addr, size_t len);
|
||||
static VirtualLock& instance();
|
||||
void lock();
|
||||
void unlock();
|
||||
void lock();
|
||||
void unlock();
|
||||
|
||||
private:
|
||||
private:
|
||||
std::mutex MMLock;
|
||||
};
|
||||
|
||||
|
@ -373,13 +373,15 @@ EXPORT SYSV_ABI int32_t sceNpInGameMessagePrepareA(int32_t libCtxId, int32_t han
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceNpInGameMessageSendData(int32_t libCtxId, const SceNpPeerAddressA* pTo, const SceNpPeerAddressA* pFrom, const SceNpInGameMessageData* pMessage) {
|
||||
EXPORT SYSV_ABI int32_t sceNpInGameMessageSendData(int32_t libCtxId, const SceNpPeerAddressA* pTo, const SceNpPeerAddressA* pFrom,
|
||||
const SceNpInGameMessageData* pMessage) {
|
||||
LOG_USE_MODULE(libSceNpManager);
|
||||
LOG_ERR(L"todo %S", __FUNCTION__);
|
||||
return Ok;
|
||||
}
|
||||
|
||||
EXPORT SYSV_ABI int32_t sceNpInGameMessageSendDataA(int32_t libCtxId, const SceNpPeerAddressA* pTo, const SceNpPeerAddressA* pFrom, const SceNpInGameMessageData* pMessage) {
|
||||
EXPORT SYSV_ABI int32_t sceNpInGameMessageSendDataA(int32_t libCtxId, const SceNpPeerAddressA* pTo, const SceNpPeerAddressA* pFrom,
|
||||
const SceNpInGameMessageData* pMessage) {
|
||||
LOG_USE_MODULE(libSceNpManager);
|
||||
LOG_ERR(L"todo %S", __FUNCTION__);
|
||||
return Ok;
|
||||
|
@ -155,14 +155,15 @@ struct SceNpCreateAsyncRequestParameter {
|
||||
|
||||
struct SceNpInGameMessageData {
|
||||
char data[SCE_NP_IN_GAME_MESSAGE_DATA_SIZE_MAX];
|
||||
size_t dataSize;
|
||||
size_t dataSize;
|
||||
};
|
||||
|
||||
typedef void* SceNpInGameMessageEventCallbackA(int32_t libCtxId, const SceNpPeerAddressA* pTo, const SceNpOnlineId* pToOnlineId, const SceNpPeerAddressA* pFrom, const SceNpOnlineId* pFromOnlineId, const SceNpInGameMessageData* pMessage, void* pUserArg);
|
||||
typedef void* SceNpInGameMessageEventCallbackA(int32_t libCtxId, const SceNpPeerAddressA* pTo, const SceNpOnlineId* pToOnlineId, const SceNpPeerAddressA* pFrom,
|
||||
const SceNpOnlineId* pFromOnlineId, const SceNpInGameMessageData* pMessage, void* pUserArg);
|
||||
|
||||
struct SceNpInGameMessageMemoryPoolStatistics {
|
||||
size_t poolSize;
|
||||
size_t maxInuseSize;
|
||||
size_t currentInuseSize;
|
||||
int32_t reserved;
|
||||
size_t maxInuseSize;
|
||||
size_t currentInuseSize;
|
||||
int32_t reserved;
|
||||
};
|
||||
|
@ -60,7 +60,7 @@ struct SceUltQueue {
|
||||
|
||||
struct SceUltUlthreadOptParam {
|
||||
uint32_t attr;
|
||||
char _unknown[127-4];
|
||||
char _unknown[127 - 4];
|
||||
};
|
||||
|
||||
struct SceUltMutexOptParam {
|
||||
|
Loading…
Reference in New Issue
Block a user