Skip to content

Commit

Permalink
CVarManager: Only execute if not setting default config
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 3, 2024
1 parent 3fe2879 commit f302c74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/CommitHash.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#define UEVR_COMMIT_HASH "1ea27b69c5965c56bb2fd43bf9a428fedda937a3"
#define UEVR_BUILD_DATE "01.03.2024"
#define UEVR_COMMIT_HASH "3fe2879d17b4ea3cda92fb25b22e48ab95ffd47a"
#define UEVR_BUILD_DATE "03.03.2024"
#define UEVR_BUILD_TIME "00:00"
4 changes: 3 additions & 1 deletion src/mods/vr/CVarManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ void CVarManager::on_config_load(const utility::Config& cfg, bool set_defaults)
// TODO: Add arbitrary cvars from the other configs the user can add.

// calling UEngine::exec here causes a crash, defer to on_pre_engine_tick()
m_should_execute_console_script = true;
if (!set_defaults) {
m_should_execute_console_script = true;
}
}

void CVarManager::dump_commands() {
Expand Down

0 comments on commit f302c74

Please sign in to comment.