Change MachineSyncBias prefs to an enum SyncBias, Changing this song triggers a reload of songs, added new option effect for reloading songs

This commit is contained in:
Crash Cringle
2025-03-14 15:39:39 -04:00
committed by teejusb
parent 8259a7cd84
commit 9529bfd142
17 changed files with 48 additions and 24 deletions
+5 -8
View File
@@ -710,12 +710,6 @@ static void GlobalOffsetSeconds( int &sel, bool ToSel, const ConfOption *pConfOp
MoveMap( sel, pConfOption, ToSel, mapping, ARRAYLEN(mapping) );
}
static void MachineSyncBias( int &sel, bool ToSel, const ConfOption *pConfOption )
{
constexpr std::array<float, 2> mapping = { 0.0f, -0.009f };
MoveMap( sel, pConfOption, ToSel, mapping.data(), mapping.size() );
}
static void EditRecordModeLeadIn(int &sel, bool to_sel, const ConfOption* conf_option)
{
float mapping[32];
@@ -947,7 +941,9 @@ static void InitializeConfOptions()
c.AddOption( ssprintf("%+i ms", i) );
ADD( c );
}
ADD( ConfOption( "MachineSyncBias", MachineSyncBias, "NULL","|ITG" ) );
ADD( ConfOption( "MachineSyncBias", MovePref<SyncBias>, "NULL","|ITG" ) );
g_ConfOptions.back().m_iEffects = OPT_RELOAD_SONGS;
ADD( ConfOption( "EnableAttackSounds", MovePref<bool>, "No","Yes" ) );
ADD( ConfOption( "EnableMineHitSound", MovePref<bool>, "No","Yes" ) );
ADD( ConfOption( "RateModPreservesPitch", MovePref<bool>, "No","Yes") );
@@ -1001,7 +997,8 @@ static const char *OptEffectNames[] = {
"ApplySound",
"ApplySong",
"ApplyAspectRatio",
"ApplyProfiles"
"ApplyProfiles",
"ReloadSongs"
};
XToString( OptEffect );
StringToX( OptEffect );