forked from cafeberry/cafeberry
title windows optimizations include: - adding WPO/LTCG - fixing potential memory leaks - reducing unneeded busy waits xbox 360 fixes include: - all item names displaying as black - adding newer dlcs crashing game ps3 fix was that, when holding the ps button, it'd corrupt the hdd. NEEDS TESTING! just a guess fix since I don't have a PS3. --------- Co-authored-by: pieeebot <piebot00@gmail.com> Co-authored-by: piebot <piebot00@gmail.com> Co-authored-by: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Co-authored-by: str1k3r <1+str1k3r@noreply.localhost> Co-authored-by: pieeebot <10+pieeebot@noreply.neolegacy.dev> Co-authored-by: qloak <53+qloak@noreply.neolegacy.dev> Reviewed-on: cafeberry/cafeberry#27 Co-authored-by: qloak <realminecart@gmail.com>
55 lines
2.0 KiB
C
55 lines
2.0 KiB
C
#pragma once
|
|
#ifdef __PSVITA__
|
|
#ifndef _OLD_SDK_H
|
|
#define _OLD_SDK_H 1
|
|
|
|
#include <np.h>
|
|
#include <np/np_basic.h>
|
|
#include <apputil.h>
|
|
#include <np_toolkit.h>
|
|
#include <np_toolkit\friends_interface.h>
|
|
|
|
typedef enum {
|
|
SCE_NP_BASIC_ONLINE_STATUS_UNKNOWN = 0,
|
|
SCE_NP_BASIC_ONLINE_STATUS_OFFLINE = 1,
|
|
SCE_NP_BASIC_ONLINE_STATUS_AFK = 2,
|
|
SCE_NP_BASIC_ONLINE_STATUS_ONLINE = 3
|
|
} SceNpBasicOnlineStatus;
|
|
|
|
typedef void(*SceNpBasicFriendOnlineStatusEventHandler)(
|
|
const SceNpId *friendId,
|
|
SceNpBasicOnlineStatus status,
|
|
void *userdata
|
|
);
|
|
|
|
typedef enum {
|
|
SCE_NP_BASIC_FRIEND_CONTEXT_STATE_UNKNOWN = 0,
|
|
SCE_NP_BASIC_FRIEND_CONTEXT_STATE_OUT_OF_CONTEXT = 1,
|
|
SCE_NP_BASIC_FRIEND_CONTEXT_STATE_IN_CONTEXT = 2
|
|
} SceNpBasicFriendContextState;
|
|
|
|
typedef void(*SceNpBasicFriendContextEventHandler)(
|
|
const SceNpId *friendId,
|
|
SceNpBasicFriendContextState state,
|
|
void *userdata
|
|
);
|
|
typedef struct SceAppUtilNpBasicJoinablePresenceParam {
|
|
SceNpCommunicationId commId;
|
|
SceNpId npId;
|
|
} SceAppUtilNpBasicJoinablePresenceParam;
|
|
|
|
int sceNpBasicGetFriendOnlineStatus(const SceNpId *friendId, SceNpBasicOnlineStatus *status);
|
|
int sceNpBasicGetFriendContextState(const SceNpId *friendId, SceNpBasicFriendContextState *state);
|
|
int sceNpBasicGetGamePresenceOfFriend(const SceNpId *friendId, SceNpBasicGamePresence *presence);
|
|
int sceNpBasicGetFriendListEntryCount(SceSize *count);
|
|
int sceNpBasicGetFriendListEntries(unsigned int startIndex, SceNpId *entries, SceSize numEntries, SceSize *retrieved);
|
|
int sceNpBasicGetFriendRequestEntryCount(SceSize *count);
|
|
int sceNpBasicGetFriendRequestEntries(unsigned int startIndex, SceNpId *entries, SceSize numEntries, SceSize *retrieved);
|
|
int sceNpBasicGetRequestedFriendRequestEntryCount(SceSize *count);
|
|
int sceNpBasicGetRequestedFriendRequestEntries(unsigned int startIndex, SceNpId *entries, SceSize numEntries, SceSize *retrieved);
|
|
SceInt32 sceAppUtilAppEventParseNpBasicJoinablePresence(const SceAppUtilAppEventParam *eventParam, SceAppUtilNpBasicJoinablePresenceParam *param);
|
|
|
|
#define SCE_APPUTIL_APPEVENT_TYPE_NP_BASIC_JOINABLE_PRESENCE (3)
|
|
|
|
#endif
|
|
#endif |