diff options
author | p0358 <p0358@users.noreply.github.com> | 2022-01-02 08:08:01 +0100 |
---|---|---|
committer | p0358 <p0358@users.noreply.github.com> | 2022-01-02 08:08:01 +0100 |
commit | 9cb76890b310fe8872dfbe68a880c75e5eb5a7ac (patch) | |
tree | 728256a8a41c95d9867febb90b69107ac6ead863 /NorthstarDedicatedTest/bansystem.h | |
parent | 664d5d434e8e31f8f74992f2f2b94ffd8a7609c0 (diff) | |
parent | 49acb6d831919022745b68f474b65c19f4e62bcd (diff) | |
download | NorthstarLauncher-9cb76890b310fe8872dfbe68a880c75e5eb5a7ac.tar.gz NorthstarLauncher-9cb76890b310fe8872dfbe68a880c75e5eb5a7ac.zip |
Merge upstream
Diffstat (limited to 'NorthstarDedicatedTest/bansystem.h')
-rw-r--r-- | NorthstarDedicatedTest/bansystem.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/bansystem.h b/NorthstarDedicatedTest/bansystem.h new file mode 100644 index 00000000..a1646356 --- /dev/null +++ b/NorthstarDedicatedTest/bansystem.h @@ -0,0 +1,19 @@ +#pragma once +#include <fstream> + +class ServerBanSystem +{ +private: + std::ofstream m_sBanlistStream; + std::vector<uint64_t> m_vBannedUids; + +public: + void OpenBanlist(); + void BanUID(uint64_t uid); + void UnbanUID(uint64_t uid); + bool IsUIDAllowed(uint64_t uid); +}; + +extern ServerBanSystem* g_ServerBanSystem; + +void InitialiseBanSystem(HMODULE baseAddress);
\ No newline at end of file |