From 3f7daea676940324a2ef494ad6439eee073adc08 Mon Sep 17 00:00:00 2001 From: C J Silverio Date: Fri, 29 Dec 2023 00:19:30 -0800 Subject: [PATCH] v0.15.1 --- CMakeLists.txt | 2 +- Cargo.lock | 2 +- Cargo.toml | 2 +- src/util/helpers.cpp | 10 +--------- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03802cb3..c5e5dbfd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) endif() set(NAME "SoulsyHUD") -set(VERSION 0.15.0.0) +set(VERSION 0.15.1.0) project( ${NAME} diff --git a/Cargo.lock b/Cargo.lock index cb0d8236..2ac10196 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -771,7 +771,7 @@ checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" [[package]] name = "soulsy" -version = "0.15.0" +version = "0.15.1" dependencies = [ "bincode", "cxx", diff --git a/Cargo.toml b/Cargo.toml index 74555d16..f44afc3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0" name = "soulsy" readme = "README.md" rust-version = "1.71.1" -version = "0.15.0" +version = "0.15.1" [lib] crate-type = ["staticlib"] diff --git a/src/util/helpers.cpp b/src/util/helpers.cpp index 8fb0b7cc..afb157b4 100644 --- a/src/util/helpers.cpp +++ b/src/util/helpers.cpp @@ -110,16 +110,8 @@ namespace helpers if (!ui->IsCursorHiddenWhenTopmost() || !ui->IsShowingMenus() || !ui->GetMenu()) { return true; } // If we're not in control of the player character or otherwise not in gameplay, move on. - if (!playerInControl()) { return true; } - /* const auto* control_map = RE::ControlMap::GetSingleton(); - if (!control_map || !control_map->IsMovementControlsEnabled() || - !control_map->AreControlsEnabled(requiredControlFlags) || !control_map->IsActivateControlsEnabled() || - control_map->contextPriorityStack.back() != RE::UserEvents::INPUT_CONTEXT_ID::kGameplay) - { - return true; - } - */ + if (!control_map || !control_map->AreControlsEnabled(requiredControlFlags)) { return true; } return false; // FOR NOW }