Force session host and improve protections (#593)

* Add force session host and update protections

* Remove old popgroup protection

* Harden script patcher

* Replace looped options with script patches

* Missing break

* Use enums

* Forgot to break again...

* Add tooltip for force session host

Co-authored-by: user <email@hostname>
This commit is contained in:
maybegreat48
2022-11-13 16:34:44 +00:00
committed by GitHub
parent c0d20c59a7
commit f636c7c17f
40 changed files with 467 additions and 250 deletions

View File

@ -156,6 +156,17 @@ namespace rage
return T(val);
}
template<typename T>
inline T ReadSigned(int length)
{
static_assert(sizeof(T) <= 4, "maximum of 32 bit read");
int val = 0;
ReadInt32(&val, length);
return T(val);
}
public:
uint8_t* m_data; //0x0000
uint32_t m_bitOffset; //0x0008