mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-27 00:20:54 +00:00
Fix formatting
This commit is contained in:
parent
43e2fd8224
commit
6a88fcc8d8
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
||||
- name: Run clang-format
|
||||
uses: jidicula/clang-format-action@v4.11.0
|
||||
with:
|
||||
clang-format-version: 18
|
||||
clang-format-version: 17
|
||||
exclude-regex: (third_party|vk_mem_alloc)
|
||||
|
||||
build:
|
||||
|
@ -3,14 +3,14 @@
|
||||
#include "utility/utility.h"
|
||||
typedef void* SceAvPlayerHandle;
|
||||
|
||||
using SceAvPlayerLogCallback = SYSV_ABI int (*)(void* userData, const char* format, va_list args);
|
||||
using SceAvPlayerAllocate = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize);
|
||||
using SceAvPlayerDeallocate = SYSV_ABI void (*)(void* argP, void* argMemory);
|
||||
using SceAvPlayerAllocateTexture = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize);
|
||||
using SceAvPlayerDeallocateTexture = SYSV_ABI void (*)(void* argP, void* argMemory);
|
||||
using SceAvPlayerOpenFile = SYSV_ABI int (*)(void* argP, const char* argFilename);
|
||||
using SceAvPlayerCloseFile = SYSV_ABI int (*)(void* argP);
|
||||
using SceAvPlayerReadOffsetFile = SYSV_ABI int (*)(void* argP, uint8_t* argBuffer, uint64_t argPosition, uint32_t argLength);
|
||||
using SceAvPlayerLogCallback = SYSV_ABI int (*)(void* userData, const char* format, va_list args);
|
||||
using SceAvPlayerAllocate = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize);
|
||||
using SceAvPlayerDeallocate = SYSV_ABI void (*)(void* argP, void* argMemory);
|
||||
using SceAvPlayerAllocateTexture = SYSV_ABI void* (*)(void* argP, uint32_t argAlignment, uint32_t argSize);
|
||||
using SceAvPlayerDeallocateTexture = SYSV_ABI void (*)(void* argP, void* argMemory);
|
||||
using SceAvPlayerOpenFile = SYSV_ABI int (*)(void* argP, const char* argFilename);
|
||||
using SceAvPlayerCloseFile = SYSV_ABI int (*)(void* argP);
|
||||
using SceAvPlayerReadOffsetFile = SYSV_ABI int (*)(void* argP, uint8_t* argBuffer, uint64_t argPosition, uint32_t argLength);
|
||||
using SceAvPlayerEventCallback = SYSV_ABI void (*)(void* p, int32_t argEventId, int32_t argSourceId, void* argEventData);
|
||||
using SceAvPlayerSizeFile = SYSV_ABI uint64_t (*)(void* argP);
|
||||
|
||||
|
@ -28,9 +28,9 @@ typedef struct SceNpTrophyFlagArray {
|
||||
SceNpTrophyFlagMask flagBits[SCE_NP_TROPHY_FLAG_SETSIZE >> SCE_NP_TROPHY_FLAG_BITS_SHIFT];
|
||||
} SceNpTrophyFlagArray;
|
||||
|
||||
#define SCE_NP_TROPHY_FLAG_SET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] |= (1 << ((n)&SCE_NP_TROPHY_FLAG_BITS_MASK)))
|
||||
#define SCE_NP_TROPHY_FLAG_CLR(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] &= ~(1 << ((n)&SCE_NP_TROPHY_FLAG_BITS_MASK)))
|
||||
#define SCE_NP_TROPHY_FLAG_ISSET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] & (1 << ((n)&SCE_NP_TROPHY_FLAG_BITS_MASK)))
|
||||
#define SCE_NP_TROPHY_FLAG_SET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] |= (1 << ((n) & SCE_NP_TROPHY_FLAG_BITS_MASK)))
|
||||
#define SCE_NP_TROPHY_FLAG_CLR(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] &= ~(1 << ((n) & SCE_NP_TROPHY_FLAG_BITS_MASK)))
|
||||
#define SCE_NP_TROPHY_FLAG_ISSET(n, p) ((p)->flagBits[(n) >> SCE_NP_TROPHY_FLAG_BITS_SHIFT] & (1 << ((n) & SCE_NP_TROPHY_FLAG_BITS_MASK)))
|
||||
#define SCE_NP_TROPHY_FLAG_ZERO(p) \
|
||||
do { \
|
||||
SceNpTrophyFlagArray* __fa = (p); \
|
||||
|
Loading…
Reference in New Issue
Block a user