Files
itgmania212121/stepmania/src/PrefsManager.h
T

75 lines
1.8 KiB
C++
Raw Normal View History

#ifndef PREFSMANAGER_H
#define PREFSMANAGER_H
2002-02-28 19:40:40 +00:00
/*
-----------------------------------------------------------------------------
Class: PrefsManager
2002-07-23 01:41:40 +00:00
Desc: Holds user-chosen preferences that are saved between sessions.
2002-02-28 19:40:40 +00:00
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-02-28 19:40:40 +00:00
Chris Danford
-----------------------------------------------------------------------------
*/
2002-06-24 22:04:31 +00:00
2002-02-28 19:40:40 +00:00
class PrefsManager
{
public:
PrefsManager();
~PrefsManager();
2002-07-31 22:37:58 +00:00
enum BackgroundMode { BGMODE_OFF, BGMODE_ANIMATIONS, BGMODE_MOVIEVIS, BGMODE_RANDOMMOVIES };
2002-07-11 19:02:26 +00:00
// GameOptions (ARE saved between sessions)
bool m_bWindowed;
int m_iDisplayWidth;
int m_iDisplayHeight;
int m_iDisplayColorDepth;
int m_iTextureColorDepth;
2002-11-12 09:23:50 +00:00
int m_iRefreshRate;
bool m_bShowStats;
2002-07-11 19:02:26 +00:00
BackgroundMode m_BackgroundMode;
float m_fBGBrightness;
int m_iMovieDecodeMS;
bool m_bUseBGIfNoBanner;
bool m_bHiddenSongs;
bool m_bVsync;
int m_iUnloadTextureDelaySeconds;
2002-07-11 19:02:26 +00:00
bool m_bIgnoreJoyAxes;
bool m_bOnlyDedicatedMenuButtons;
bool m_bMenuTimer;
bool m_bShowDanger;
int m_iNumArcadeStages;
bool m_bEventMode;
float m_fJudgeWindowSeconds;
float m_fLifeDifficultyScale;
float m_fJudgeWindowPerfectPercent;
float m_fJudgeWindowGreatPercent;
float m_fJudgeWindowGoodPercent;
bool m_bAutoPlay;
bool m_bDelayedEscape;
bool m_bHowToPlay, m_bShowDontDie, m_bShowSelectGroup;
bool m_bArcadeOptionsNavigation;
2002-10-16 22:11:11 +00:00
bool m_bCoinOpMode;
2002-12-30 21:42:14 +00:00
bool m_bMusicWheelUsesSections;
bool m_bChangeBannersWhenFast;
2002-12-30 21:42:14 +00:00
CStringArray m_asAdditionalSongFolders;
2002-09-10 08:36:03 +00:00
CString m_DWIPath;
2002-05-27 08:23:27 +00:00
2002-12-13 22:06:30 +00:00
CString m_bSoundDrivers;
2002-07-23 01:41:40 +00:00
void ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame );
void SaveGlobalPrefsToDisk();
2002-05-27 08:23:27 +00:00
2002-07-23 01:41:40 +00:00
void ReadGamePrefsFromDisk();
void SaveGamePrefsToDisk();
2002-02-28 19:40:40 +00:00
};
2002-05-27 08:23:27 +00:00
extern PrefsManager* PREFSMAN; // global and accessable from anywhere in our program
#endif