feat(Protections): Reenabled CanApplyData (#740)
* fix(CanApplyData): correct crash_blocked msg
This commit is contained in:
@ -28,5 +28,23 @@ namespace rage
|
||||
static_assert(consteval_joaat("test") == 0x3f75ccc1);
|
||||
}
|
||||
|
||||
inline consteval rage::joaat_t operator""_j(const char* s, std::size_t n)
|
||||
{
|
||||
rage::joaat_t result = 0;
|
||||
|
||||
for (std::size_t i = 0; i < n; i++)
|
||||
{
|
||||
result += rage::joaat_to_lower(s[i]);
|
||||
result += (result << 10);
|
||||
result ^= (result >> 6);
|
||||
}
|
||||
|
||||
result += (result << 3);
|
||||
result ^= (result >> 11);
|
||||
result += (result << 15);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define RAGE_JOAAT_IMPL(str) (::rage::consteval_joaat(str))
|
||||
#define RAGE_JOAAT(str) (std::integral_constant<rage::joaat_t, RAGE_JOAAT_IMPL(str)>::value)
|
Reference in New Issue
Block a user