mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fix some playlist starter loot, cleanup some code, fix death bugs on 1.8 and 1.7.2, fix reloading not taking items on 1.8 and 1.7.2, fix looting on s9, fix some s15 & s16 builds, fix bug with higher version looting
58 lines
2.2 KiB
C++
58 lines
2.2 KiB
C++
#pragma once
|
|
|
|
#include <Windows.h>
|
|
#include <iostream>
|
|
#include <format>
|
|
#include <string>
|
|
|
|
typedef unsigned short uint16;
|
|
typedef unsigned char uint8;
|
|
typedef char int8;
|
|
typedef short int16;
|
|
typedef int int32;
|
|
typedef __int64 int64;
|
|
typedef unsigned int uint32;
|
|
typedef unsigned __int64 uint64;
|
|
|
|
extern inline int Engine_Version = 0; // For example, 420, 421, etc. // Prevent using this when possible.
|
|
extern inline double Fortnite_Version = 0; // For example, 4.1, 6.21, etc. // Prevent using this when possible.
|
|
extern inline int Fortnite_CL = 0;
|
|
|
|
// #define PROD // this doesnt do anything besides remove processeventhook and some assert stuff
|
|
|
|
struct PlaceholderBitfield
|
|
{
|
|
uint8_t First : 1;
|
|
uint8_t Second : 1;
|
|
uint8_t Third : 1;
|
|
uint8_t Fourth : 1;
|
|
uint8_t Fifth : 1;
|
|
uint8_t Sixth : 1;
|
|
uint8_t Seventh : 1;
|
|
uint8_t Eighth : 1;
|
|
};
|
|
|
|
#define MS_ALIGN(n) __declspec(align(n))
|
|
#define FORCENOINLINE __declspec(noinline)
|
|
|
|
#define ENUM_CLASS_FLAGS(Enum) \
|
|
inline Enum& operator|=(Enum& Lhs, Enum Rhs) { return Lhs = (Enum)((__underlying_type(Enum))Lhs | (__underlying_type(Enum))Rhs); } \
|
|
inline Enum& operator&=(Enum& Lhs, Enum Rhs) { return Lhs = (Enum)((__underlying_type(Enum))Lhs & (__underlying_type(Enum))Rhs); } \
|
|
inline Enum& operator^=(Enum& Lhs, Enum Rhs) { return Lhs = (Enum)((__underlying_type(Enum))Lhs ^ (__underlying_type(Enum))Rhs); } \
|
|
inline constexpr Enum operator| (Enum Lhs, Enum Rhs) { return (Enum)((__underlying_type(Enum))Lhs | (__underlying_type(Enum))Rhs); } \
|
|
inline constexpr Enum operator& (Enum Lhs, Enum Rhs) { return (Enum)((__underlying_type(Enum))Lhs & (__underlying_type(Enum))Rhs); } \
|
|
inline constexpr Enum operator^ (Enum Lhs, Enum Rhs) { return (Enum)((__underlying_type(Enum))Lhs ^ (__underlying_type(Enum))Rhs); } \
|
|
inline constexpr bool operator! (Enum E) { return !(__underlying_type(Enum))E; } \
|
|
inline constexpr Enum operator~ (Enum E) { return (Enum)~(__underlying_type(Enum))E; }
|
|
|
|
#define UNLIKELY(x) (x)
|
|
|
|
inline bool AreVehicleWeaponsEnabled()
|
|
{
|
|
return Fortnite_Version < 9;
|
|
}
|
|
|
|
inline bool IsRestartingSupported()
|
|
{
|
|
return Engine_Version >= 419 && Engine_Version < 424;
|
|
} |