fix looting s5, fix mcp skins on <S9, add team map markers to s8+, add nomcp to s5, add something that should fix some issues on a lot of versions
This commit is contained in:
Milxnor
2023-04-09 01:16:08 -04:00
parent 0d7b45cbbc
commit 80b4b20d73
18 changed files with 180 additions and 23 deletions

View File

@@ -0,0 +1,47 @@
#pragma once
#ifndef PLATFORM_CPU_ARM_FAMILY
#if (defined(__arm__) || defined(_M_ARM) || defined(__aarch64__) || defined(_M_ARM64))
#define PLATFORM_CPU_ARM_FAMILY 1
#else
#define PLATFORM_CPU_ARM_FAMILY 0
#endif
#endif
#define PLATFORM_WEAKLY_CONSISTENT_MEMORY PLATFORM_CPU_ARM_FAMILY
#define FORCE_THREADSAFE_SHAREDPTRS PLATFORM_WEAKLY_CONSISTENT_MEMORY
enum class ESPMode
{
/** Forced to be not thread-safe. */
NotThreadSafe = 0,
/**
* Fast, doesn't ever use atomic interlocks.
* Some code requires that all shared pointers are thread-safe.
* It's better to change it here, instead of replacing ESPMode::Fast to ESPMode::ThreadSafe throughout the code.
*/
Fast = FORCE_THREADSAFE_SHAREDPTRS ? 1 : 0,
/** Conditionally thread-safe, never spin locks, but slower */
ThreadSafe = 1
};
class FReferenceControllerBase
{
public:
FORCEINLINE explicit FReferenceControllerBase()
: SharedReferenceCount(1)
, WeakReferenceCount(1)
{
}
int32 SharedReferenceCount;
int32 WeakReferenceCount;
};
template< ESPMode Mode >
class FSharedReferencer
{
public:
FReferenceControllerBase* ReferenceController;
};