Skip to content

Commit

Permalink
FreeCam: Hide Disable Movement on unsupported games (#1123)
Browse files Browse the repository at this point in the history
* FreeCam: Hide Disable Movement on non RE8

* Update FreeCam.cpp

* Update FreeCam.cpp

---------

Co-authored-by: praydog <[email protected]>
  • Loading branch information
illusion0001 and praydog authored Nov 10, 2024
1 parent 2dcca30 commit 99d0dfb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mods/FreeCam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

using namespace utility;

#if defined(RE2) || defined(RE3) || defined(RE8) || defined(RE4)
#define MOVEMENT_DISABLE_FEATURE
#endif

void FreeCam::on_config_load(const Config& cfg) {
for (IModValue& option : m_options) {
option.config_load(cfg);
Expand Down Expand Up @@ -49,15 +53,15 @@ void FreeCam::on_draw_ui() {
ImGui::SameLine();
m_lock_camera->draw("Lock Position");

#ifndef SF6
#ifdef MOVEMENT_DISABLE_FEATURE
m_disable_movement->draw("Disable Character Movement");
#endif

m_toggle_key->draw("Toggle Key");
m_move_up_key->draw("Move camera up Key");
m_move_down_key->draw("Move camera down Key");
m_lock_camera_key->draw("Lock Position Toggle Key");
#ifndef SF6
#ifdef MOVEMENT_DISABLE_FEATURE
m_disable_movement_key->draw("Disable Movement Toggle Key");
#endif
m_speed_modifier_fast_key->draw("Speed modifier Fast key");
Expand Down

0 comments on commit 99d0dfb

Please sign in to comment.