feat (RateModsAffectFGChanges): add a PREFSMAN RateModsAffectFGChanges

This commit is contained in:
FMS-Cat
2020-10-20 01:38:55 +09:00
parent 6a645b4710
commit a6dd6f4ad7
2 changed files with 35 additions and 28 deletions
+7 -6
View File
@@ -190,6 +190,7 @@ PrefsManager::PrefsManager() :
m_fLifeDifficultyScale ( "LifeDifficultyScale", 1.0f ),
m_bRateModsAffectTweens ( "RateModsAffectFGChanges", false ),
m_iRegenComboAfterMiss ( "RegenComboAfterMiss", 5 ),
m_iMaxRegenComboAfterMiss ( "MaxRegenComboAfterMiss", 5 ), // this was 10 by default in SM3.95 -dguzek
@@ -276,7 +277,7 @@ PrefsManager::PrefsManager() :
m_iRageSoundSampleCountClamp ("RageSoundSampleCountClamp", 0), //some sound drivers mask the sample location number, the most popular number for this is 2^27, this causes lockup after ~50 minutes at 44.1khz sample rate
m_iSoundPreferredSampleRate ( "SoundPreferredSampleRate", 0 ),
m_sLightsStepsDifficulty ( "LightsStepsDifficulty", "hard,medium" ),
m_bAllowUnacceleratedRenderer ( "AllowUnacceleratedRenderer", false ),
m_bAllowUnacceleratedRenderer ( "AllowUnacceleratedRenderer", false ),
m_bThreadedInput ( "ThreadedInput", true ),
m_bThreadedMovieDecode ( "ThreadedMovieDecode", true ),
m_sTestInitialScreen ( "TestInitialScreen", "" ),
@@ -546,7 +547,7 @@ RString PrefsManager::GetPreferencesSection() const
// lua start
#include "LuaBinding.h"
/** @brief Allow Lua to have access to the PrefsManager. */
/** @brief Allow Lua to have access to the PrefsManager. */
class LunaPrefsManager: public Luna<PrefsManager>
{
public:
@@ -607,9 +608,9 @@ public:
lua_pushboolean( L, true );
return 1;
}
static int SavePreferences( T* p, lua_State *L ) { p->SavePrefsToDisk(); COMMON_RETURN_SELF; }
LunaPrefsManager()
{
ADD_METHOD( GetPreference );
@@ -626,7 +627,7 @@ LUA_REGISTER_CLASS( PrefsManager )
/*
* (c) 2001-2004 Chris Danford, Chris Gomez
* All rights reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -636,7 +637,7 @@ LUA_REGISTER_CLASS( PrefsManager )
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
+28 -22
View File
@@ -15,36 +15,36 @@ void ValidateSongsPerPlay( int &val );
const int MAX_SONGS_PER_PLAY = 7;
enum MusicWheelUsesSections
{
MusicWheelUsesSections_NEVER,
MusicWheelUsesSections_ALWAYS,
MusicWheelUsesSections_ABC_ONLY,
NUM_MusicWheelUsesSections,
{
MusicWheelUsesSections_NEVER,
MusicWheelUsesSections_ALWAYS,
MusicWheelUsesSections_ABC_ONLY,
NUM_MusicWheelUsesSections,
MusicWheelUsesSections_Invalid
};
/** @brief The options for allowing the W1 timing. */
enum AllowW1
{
{
ALLOW_W1_NEVER, /**< The W1 timing is not used. */
ALLOW_W1_COURSES_ONLY, /**< The W1 timing is used for courses only. */
ALLOW_W1_EVERYWHERE, /**< The W1 timing is used for all modes. */
NUM_AllowW1,
NUM_AllowW1,
AllowW1_Invalid
};
enum Maybe
{
Maybe_ASK,
Maybe_NO,
Maybe_YES,
NUM_Maybe,
Maybe_Invalid
{
Maybe_ASK,
Maybe_NO,
Maybe_YES,
NUM_Maybe,
Maybe_Invalid
};
enum GetRankingName
{
RANKING_OFF,
RANKING_ON,
RANKING_LIST,
NUM_GetRankingName,
enum GetRankingName
{
RANKING_OFF,
RANKING_ON,
RANKING_LIST,
NUM_GetRankingName,
GetRankingName_Invalid
};
enum RandomBackgroundMode
@@ -182,6 +182,12 @@ public:
Preference<float> m_fLifeDifficultyScale;
/**
* Whether ratemod should affect playback speeds of FGChanges or not.
* Originally introduced in NotITG.
*/
Preference<bool> m_bRateModsAffectTweens;
// Whoever added these: Please add a comment saying what they do. -Chris
Preference<int> m_iRegenComboAfterMiss; // combo that must be met after a Miss to regen life
Preference<int> m_iMaxRegenComboAfterMiss; // caps RegenComboAfterMiss if multiple Misses occur in rapid succession
@@ -281,7 +287,7 @@ public:
Preference<RString> m_sVideoRenderers; // StepMania.cpp sets these on first run based on the card
Preference<bool> m_bSmoothLines;
Preference<int> m_iSoundWriteAhead;
Preference<RString> m_iSoundDevice;
Preference<RString> m_iSoundDevice;
Preference<int> m_iRageSoundSampleCountClamp;
Preference<int> m_iSoundPreferredSampleRate;
Preference<RString> m_sLightsStepsDifficulty;
@@ -363,7 +369,7 @@ extern PrefsManager* PREFSMAN; // global and accessible from anywhere in our pro
* @author Chris Danford, Chris Gomez (c) 2001-2004
* @section LICENSE
* All rights reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -373,7 +379,7 @@ extern PrefsManager* PREFSMAN; // global and accessible from anywhere in our pro
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF