add pref "HideDefaultNoteSkin"
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "arch/ArchHooks/ArchHooks.h"
|
#include "arch/ArchHooks/ArchHooks.h"
|
||||||
|
#include "PrefsManager.h"
|
||||||
|
|
||||||
|
|
||||||
NoteSkinManager* NOTESKIN = NULL; // global object accessable from anywhere in the program
|
NoteSkinManager* NOTESKIN = NULL; // global object accessable from anywhere in the program
|
||||||
@@ -110,7 +111,8 @@ void NoteSkinManager::GetNoteSkinNames( CStringArray &AddTo )
|
|||||||
if( iter != AddTo.end() )
|
if( iter != AddTo.end() )
|
||||||
{
|
{
|
||||||
AddTo.erase( iter );
|
AddTo.erase( iter );
|
||||||
AddTo.insert( AddTo.begin(), "default" );
|
if( !PREFSMAN->m_bHideDefaultNoteSkin )
|
||||||
|
AddTo.insert( AddTo.begin(), "default" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,6 +214,7 @@ PrefsManager::PrefsManager()
|
|||||||
m_iAttractSoundFrequency = 1;
|
m_iAttractSoundFrequency = 1;
|
||||||
m_bAllowExtraStage = true;
|
m_bAllowExtraStage = true;
|
||||||
m_bLockWheelAfterRandom = true;
|
m_bLockWheelAfterRandom = true;
|
||||||
|
m_bHideDefaultNoteSkin = false;
|
||||||
m_fPadStickSeconds = 0;
|
m_fPadStickSeconds = 0;
|
||||||
g_bAutoRestart = false;
|
g_bAutoRestart = false;
|
||||||
m_bSignProfileData = false;
|
m_bSignProfileData = false;
|
||||||
@@ -493,6 +494,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk()
|
|||||||
ini.GetValue( "Options", "AttractSoundFrequency", m_iAttractSoundFrequency );
|
ini.GetValue( "Options", "AttractSoundFrequency", m_iAttractSoundFrequency );
|
||||||
ini.GetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
ini.GetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
||||||
ini.GetValue( "Options", "LockWheelAfterRandom", m_bLockWheelAfterRandom );
|
ini.GetValue( "Options", "LockWheelAfterRandom", m_bLockWheelAfterRandom );
|
||||||
|
ini.GetValue( "Options", "HideDefaultNoteSkin", m_bHideDefaultNoteSkin );
|
||||||
ini.GetValue( "Options", "PadStickSeconds", m_fPadStickSeconds );
|
ini.GetValue( "Options", "PadStickSeconds", m_fPadStickSeconds );
|
||||||
ini.GetValue( "Options", "AutoRestart", g_bAutoRestart );
|
ini.GetValue( "Options", "AutoRestart", g_bAutoRestart );
|
||||||
ini.GetValue( "Options", "SignProfileData", m_bSignProfileData );
|
ini.GetValue( "Options", "SignProfileData", m_bSignProfileData );
|
||||||
@@ -706,6 +708,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
|
|||||||
ini.SetValue( "Options", "AttractSoundFrequency", m_iAttractSoundFrequency );
|
ini.SetValue( "Options", "AttractSoundFrequency", m_iAttractSoundFrequency );
|
||||||
ini.SetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
ini.SetValue( "Options", "AllowExtraStage", m_bAllowExtraStage );
|
||||||
ini.SetValue( "Options", "LockWheelAfterRandom", m_bLockWheelAfterRandom );
|
ini.SetValue( "Options", "LockWheelAfterRandom", m_bLockWheelAfterRandom );
|
||||||
|
ini.SetValue( "Options", "HideDefaultNoteSkin", m_bHideDefaultNoteSkin );
|
||||||
ini.SetValue( "Options", "PadStickSeconds", m_fPadStickSeconds );
|
ini.SetValue( "Options", "PadStickSeconds", m_fPadStickSeconds );
|
||||||
ini.SetValue( "Options", "AutoRestart", g_bAutoRestart );
|
ini.SetValue( "Options", "AutoRestart", g_bAutoRestart );
|
||||||
ini.SetValue( "Options", "SignProfileData", m_bSignProfileData );
|
ini.SetValue( "Options", "SignProfileData", m_bSignProfileData );
|
||||||
|
|||||||
@@ -189,6 +189,7 @@ public:
|
|||||||
int m_iAttractSoundFrequency; // 0 = never, 1 = every time
|
int m_iAttractSoundFrequency; // 0 = never, 1 = every time
|
||||||
bool m_bAllowExtraStage;
|
bool m_bAllowExtraStage;
|
||||||
bool m_bLockWheelAfterRandom;
|
bool m_bLockWheelAfterRandom;
|
||||||
|
bool m_bHideDefaultNoteSkin;
|
||||||
|
|
||||||
// Number of seconds it takes for a button on the controller to release
|
// Number of seconds it takes for a button on the controller to release
|
||||||
// after pressed.
|
// after pressed.
|
||||||
|
|||||||
Reference in New Issue
Block a user