renderer on debug only, sp no longer crashes
This commit is contained in:
parent
4982a33aea
commit
bd961ae124
@ -82,10 +82,10 @@ namespace map_rotation
|
||||
if (dvar && dvar->current.enabled)
|
||||
{
|
||||
scheduler::on_game_initialized([]()
|
||||
{
|
||||
//printf("=======================setting OLD priority=======================\n");
|
||||
SetPriorityClass(GetCurrentProcess(), previousPriority);
|
||||
}, scheduler::pipeline::main, 1s);
|
||||
{
|
||||
//printf("=======================setting OLD priority=======================\n");
|
||||
SetPriorityClass(GetCurrentProcess(), previousPriority);
|
||||
}, scheduler::pipeline::main, 1s);
|
||||
|
||||
previousPriority = GetPriorityClass(GetCurrentProcess());
|
||||
//printf("=======================setting NEW priority=======================\n");
|
||||
|
@ -121,9 +121,9 @@ namespace patches
|
||||
else
|
||||
{
|
||||
scheduler::once([]()
|
||||
{
|
||||
command::execute("reconnect");
|
||||
}, scheduler::pipeline::main, 1s);
|
||||
{
|
||||
command::execute("reconnect");
|
||||
}, scheduler::pipeline::main, 1s);
|
||||
game::Com_Error(game::ERR_DROP, error, arg1);
|
||||
}
|
||||
}
|
||||
@ -228,7 +228,7 @@ namespace patches
|
||||
dvars::override::register_int("elite_clan_active", 0, 0, 0, game::DVAR_FLAG_NONE);
|
||||
utils::hook::set<uint8_t>(0x140585680, 0xC3); // don't register commands H1(1.4)
|
||||
|
||||
//// disable codPointStore
|
||||
// disable codPointStore
|
||||
dvars::override::register_int("codPointStore_enabled", 0, 0, 0, game::DVAR_FLAG_NONE, true);
|
||||
|
||||
// don't register every replicated dvar as a network dvar
|
||||
|
@ -50,7 +50,7 @@ namespace renderer
|
||||
public:
|
||||
void post_unpack() override
|
||||
{
|
||||
if (game::environment::is_dedi())
|
||||
if (game::environment::is_dedi() || !game::environment::is_mp())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -60,6 +60,8 @@ namespace renderer
|
||||
r_init_draw_method_hook.create(SELECT_VALUE(0x1404BD140, 0x1405C46E0), &r_init_draw_method_stub);
|
||||
r_update_front_end_dvar_options_hook.create(SELECT_VALUE(0x1404F8870, 0x1405FF9E0), &r_update_front_end_dvar_options_stub);
|
||||
|
||||
// TODO: find singleplayer addresses. unless they are different, i could not find it in R_RegisterDvars :|
|
||||
|
||||
// use "saved" flags for "r_normalMap"
|
||||
utils::hook::set<uint8_t>(SELECT_VALUE(0x0, 0x1405D460E), game::DVAR_FLAG_SAVED);
|
||||
|
||||
@ -72,4 +74,6 @@ namespace renderer
|
||||
};
|
||||
}
|
||||
|
||||
REGISTER_COMPONENT(renderer::component)
|
||||
#ifdef DEBUG
|
||||
REGISTER_COMPONENT(renderer::component)
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user