Skip to content

Commit

Permalink
Bypass default
Browse files Browse the repository at this point in the history
  • Loading branch information
grimes2 committed Apr 28, 2023
1 parent 9a6d45c commit c5ebf77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foo_preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ advconfig_string_factory cfg_start_time_percent("Start time (%)", guid_cfg_start
// {91876C5A-7200-4FCC-BAAE-1B77F1D48881}
static const GUID guid_cfg_track_length_bypass =
{ 0x91876c5a, 0x7200, 0x4fcc, { 0xba, 0xae, 0x1b, 0x77, 0xf1, 0xd4, 0x88, 0x81 } };
advconfig_string_factory cfg_track_length_bypass("Track length bypass (s)", guid_cfg_track_length_bypass, guid_cfg_branch, 0, "5");
advconfig_string_factory cfg_track_length_bypass("Track length bypass (s)", guid_cfg_track_length_bypass, guid_cfg_branch, 0, "0");

// {713B159B-E2D4-4D5C-96C0-7B172C32E22B}
static const GUID guid_cfg_preview_length_percent_enabled =
Expand Down Expand Up @@ -234,9 +234,9 @@ class play_callback_preview : public play_callback_static
{
if (menu_preview_enabled)
{
KillTimer(NULL, ptr3);
cfg_track_length_bypass.get(track_length_bypass);
track_length_bypass2 = atoi(track_length_bypass);
KillTimer(NULL, ptr3);
titleformat_object::ptr titleformat;
titleformat_compiler::get()->compile_safe_ex(titleformat, "%length_seconds%", "<ERROR>");
p_track->format_title(nullptr, total_time, titleformat, nullptr);
Expand Down

0 comments on commit c5ebf77

Please sign in to comment.