Skip to content

Commit

Permalink
fix: disable live update for editor (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiertho authored Aug 3, 2024
1 parent 29b5172 commit b878f5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fmod_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ void FmodServer::init(const Ref<FmodGeneralSettings>& p_settings) {

FMOD_STUDIO_INITFLAGS studio_init_flags = FMOD_STUDIO_INIT_NORMAL;

if (p_settings->get_is_live_update_enabled()) { studio_init_flags |= FMOD_STUDIO_INIT_LIVEUPDATE; }
if (
#ifdef TOOLS_ENABLED
!Engine::get_singleton()->is_editor_hint() &&
#endif
p_settings->get_is_live_update_enabled()
) { studio_init_flags |= FMOD_STUDIO_INIT_LIVEUPDATE; }

if (p_settings->get_is_memory_tracking_enabled()) { studio_init_flags |= FMOD_STUDIO_INIT_MEMORY_TRACKING; }

Expand Down

0 comments on commit b878f5c

Please sign in to comment.