Merge pull request #37 from Dss0/dss0_fixes

Some improvements
This commit is contained in:
RektInator 2020-08-17 10:55:14 +02:00 committed by GitHub
commit a95618ac7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,9 @@ namespace Components
Utils::Cryptography::ECC::Key Auth::GuidKey; Utils::Cryptography::ECC::Key Auth::GuidKey;
std::vector<std::uint64_t> Auth::BannedUids = { std::vector<std::uint64_t> Auth::BannedUids = {
0xf4d2c30b712ac6e3 0xf4d2c30b712ac6e3,
0xf7e33c4081337fa3,
0x6f5597f103cc50e9
}; };
void Auth::Frame() void Auth::Frame()

View File

@ -748,7 +748,7 @@ namespace Components
{ {
if (Dedicated::IsEnabled()) return; if (Dedicated::IsEnabled()) return;
Dvar::Register<bool>("r_useD3D9Ex", true, Game::dvar_flag::DVAR_FLAG_SAVED, "Use extended d3d9 interface!"); Dvar::Register<bool>("r_useD3D9Ex", false, Game::dvar_flag::DVAR_FLAG_SAVED, "Use extended d3d9 interface!");
// Hook Interface creation // Hook Interface creation
Utils::Hook::Set(0x6D74D0, D3D9Ex::Direct3DCreate9Stub); Utils::Hook::Set(0x6D74D0, D3D9Ex::Direct3DCreate9Stub);

View File

@ -66,6 +66,7 @@ namespace Components
int Stats::SaveStats(char* dest, const char* folder, const char* buffer, size_t length) int Stats::SaveStats(char* dest, const char* folder, const char* buffer, size_t length)
{ {
const auto fs_game = Game::Dvar_FindVar("fs_game"); const auto fs_game = Game::Dvar_FindVar("fs_game");
if (fs_game && fs_game->current.string && strlen(fs_game->current.string) && !strncmp(fs_game->current.string, "mods/", 5)) if (fs_game && fs_game->current.string && strlen(fs_game->current.string) && !strncmp(fs_game->current.string, "mods/", 5))
{ {
folder = fs_game->current.string; folder = fs_game->current.string;