[Exception]: Remove this (#668)

This commit is contained in:
Edo 2022-12-25 19:38:43 +01:00 committed by GitHub
parent 01a629d02b
commit 0539fe3e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -169,7 +169,7 @@ namespace Components
{
SetMiniDumpType(Flags::HasFlag("bigminidumps"), Flags::HasFlag("reallybigminidumps"));
SetUnhandledExceptionFilter(&Exception::ExceptionFilter);
SetUnhandledExceptionFilter(&ExceptionFilter);
Utils::Hook(0x4B241F, LongJmp_Internal_Stub, HOOK_CALL).install()->quick();
Utils::Hook(0x61DB44, LongJmp_Internal_Stub, HOOK_CALL).install()->quick();

View File

@ -77,7 +77,7 @@ namespace Components
return Party::Container.motd;
}
Game::dvar_t* Party::RegisterMinPlayers(const char* name, int /*value*/, int /*min*/, int max, Game::DvarFlags flag, const char* description)
Game::dvar_t* Party::RegisterMinPlayers(const char* name, int /*value*/, int /*min*/, int max, unsigned __int16 flag, const char* description)
{
return Dvar::Register<int>(name, 1, 1, max, Game::DVAR_INIT | flag, description).get<Game::dvar_t*>();
}

View File

@ -50,7 +50,7 @@ namespace Components
static SteamID GenerateLobbyId();
static Game::dvar_t* RegisterMinPlayers(const char* name, int value, int min, int max, Game::DvarFlags flag, const char* description);
static Game::dvar_t* RegisterMinPlayers(const char* name, int value, int min, int max, unsigned __int16 flag, const char* description);
static DWORD UIDvarIntStub(char* dvar);
};

View File

@ -27,8 +27,8 @@ namespace Game
unsigned __int16 classnum;
};
typedef void(__cdecl* BuiltinFunction)();
typedef void(__cdecl* BuiltinMethod)(scr_entref_t);
typedef void(*BuiltinFunction)();
typedef void(*BuiltinMethod)(scr_entref_t);
struct BuiltinFunctionDef
{
@ -383,7 +383,7 @@ namespace Game
SURF_TYPE_COUNT
};
enum DvarFlags : unsigned __int16
enum : unsigned __int16
{
DVAR_NONE = 0, // No flags
DVAR_ARCHIVE = 1 << 0, // Set to cause it to be saved to config_mp.cfg of the client