Commit Graph

476 Commits

Author SHA1 Message Date
Glenn Maynard 578c6d5726 simplify singleton registration 2006-09-21 04:42:45 +00:00
Glenn Maynard 2fe1e69522 move out of PrefsMan 2006-08-17 01:05:00 +00:00
Chris Danford 1e6f968d8e add AdditionalCourseFolders pref 2006-08-14 20:05:35 +00:00
Chris Danford 1a902b3abd add pref for showing autoplay status 2006-07-08 09:05:44 +00:00
Chris Danford 9899308409 add pref for showing autoplay status 2006-07-08 08:32:54 +00:00
Chris Danford ca8a477158 add ValidateCourseSortOrder 2006-07-06 01:11:37 +00:00
Chris Danford 270b8d94c5 seperate fast load for regular and additional songs 2006-06-15 10:54:55 +00:00
Mike Calfin d176107cab turned off select group screen, as we're not using it in the default theme as of now 2006-04-30 06:13:11 +00:00
Glenn Maynard fe00ec613c move out of PrefsManager 2006-04-06 09:39:29 +00:00
Glenn Maynard 2e0ff9d9c8 Change default BGBrightness to line up with BGBrightnessOrStatic. 2006-03-29 01:52:30 +00:00
Glenn Maynard d37daab68c move out of PrefsMan 2006-03-26 04:12:17 +00:00
Chris Danford 09b88acb0d remove brightness quad. Add SSystemLayer overlay for doing hacks like that. 2006-03-22 23:00:58 +00:00
Chris Danford 1bb78b396c don't write values to Preferences.ini that are in Static.ini 2006-03-20 04:57:15 +00:00
Chris Danford da5982a29d comments cleanup 2006-03-15 02:19:47 +00:00
Glenn Maynard f6b45581b4 cleanup 2006-02-28 03:22:23 +00:00
Glenn Maynard 5f8337e9da move some stuff out of PManager 2006-02-28 01:13:44 +00:00
Chris Danford d87a17a034 PRODUCT_NAME -> PRODUCT_FAMILY
PRODUCT_NAME_VER -> PRODUCT_ID_VER
2006-02-25 23:59:32 +00:00
Steve Checkoway a0506c42fb Fix compile. 2006-02-25 07:32:34 +00:00
Chris Danford f5174d5d99 have smpackage read theme from static.ini in case the game hasn't been run yet to create preferences.ini 2006-02-25 04:34:19 +00:00
Chris Danford 3e157b3ab5 move validation into Preference 2006-02-24 23:39:21 +00:00
Chris Danford 2ff000fc8a give up on auto AR. Handling the AR when the resolution is falling back is more complicated than it's worth. 2006-02-07 00:55:03 +00:00
Chris Danford bcf84d9bda re-add Auto AR. Tie it to the desktop resolution which does not change when toggling between fullscreen and windowed. This assumes that the desktop resolution is using square pixels. This assumption will hold true for all out-of-the-box machines with a widescreen display. 2006-02-06 23:40:28 +00:00
Chris Danford 3ed40f6559 remove auto aspect ratio. We can't have the aspect ratio changing mid-game when the screen resolution changes (toggling fullscreen) 2006-02-06 20:15:33 +00:00
Chris Danford 70479fd0c4 tab cleanup
no need to fall back to opengl on xbox
2006-02-06 18:23:30 +00:00
Glenn Maynard 0017b79116 move DelayedScreenLoad 2006-01-31 05:33:58 +00:00
Chris Danford e09e502038 CenteredSingle->Center1Player 2006-01-27 07:09:43 +00:00
Chris Danford af732e66aa solo single -> centered single 2006-01-27 06:46:41 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 5f7d26addd move DisplayAspectRatio 2006-01-20 22:44:28 +00:00
Glenn Maynard a345a16d3b Fix RestoreGamePrefs when restoring to a game that hasn't been
used before: it wouldn't be in m_mapGameNameToGamePrefs, so
we'd keep the prefs of the previous game and Static.ini wouldn't
be loaded.  (Theme still isn't being applied correctly.)
2006-01-15 22:11:30 +00:00
Glenn Maynard 9ca7586632 add SetPreferenceToDefault 2006-01-14 04:10:01 +00:00
Glenn Maynard d4d16623cf cleanup 2006-01-14 04:02:13 +00:00
Glenn Maynard cdf951e589 Instead of loading Defaults.ini underneith Preferences.ini, change the
actual IPreference defaults according to Defaults.ini.  This way, we can
access default values immediately, without having to load and parse a
file.  Since this simply changes the value in the preference, this doesn't
use any more memory.
2006-01-14 03:56:59 +00:00
Chris Danford ef3d2172b2 load preference groups recursively 2006-01-09 19:48:33 +00:00
Chris Danford d55ae24611 add PseudoLocalize
phase out SubscriptionManager for SubscriptionHandler to fix ThemeManager assert
2006-01-06 20:18:15 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Glenn Maynard 8652d9e3b9 LastSeenMemory -> StepMania 2005-12-31 05:07:05 +00:00
Glenn Maynard f435983996 IPreference stores preferences, but knows nothing about loading or
saving them; that's up to PrefsManager.

Treat IPreference as a simple data holder, with simple facilities for
looking them up by name, converting to/from strings, and storing to/from
an XNode, but with no application-specific code to save to disk.  This
can be used alone as a way for code to configure things internally, even
for uses that have no notion of storing user preferences (eg. unit tests),
and other programs can use it to store preferences in entirely different
ways (SMPackage could use it to store to the registry).  PrefsManager is
layered on top, to implement StepMania's particular use of Preference
(saving and loading INIs), but isn't needed for Preference to be useful.

This also makes Preference only use XNode, not the more specialized IniFile.

(One piece is missing: several low-level places, eg. Dialog, want to set
a preference and write it to disk immediately.  The only way to do that
is to have access to PREFSMAN.  FIXME.)
2005-12-31 04:59:56 +00:00
Glenn Maynard 515134e584 unused 2005-12-31 04:19:53 +00:00
Glenn Maynard 418bce60a8 SoundDrivers into RageSoundManager 2005-12-31 02:35:49 +00:00
Glenn Maynard 757fdf0795 move InputDrivers into RageInput 2005-12-31 02:20:03 +00:00
Glenn Maynard 45d3c944af move movie driver pref into arch.cpp 2005-12-31 02:13:39 +00:00
Glenn Maynard 0066776403 move lights driver pref into LightsMan 2005-12-31 02:06:57 +00:00
Glenn Maynard e2bd376410 remove PrefsManager::GetPreferenceByName 2005-12-31 02:00:37 +00:00
Glenn Maynard 76e55c2f14 PrefsMan and Preference depend on each other. PrefsMan is big, and
depends on some higher level code.  Make Preference stand-alone, so
code that only has its own preferences can be used without PrefsMan.
2005-12-31 01:26:29 +00:00
Glenn Maynard 5316ffdecc move some preferences to where they're used 2005-12-30 19:46:10 +00:00
Glenn Maynard 2128cc180a unneeded 2005-12-30 19:29:40 +00:00
Steve Checkoway ada5f4f00f Use ASSERT like a function. 2005-12-30 13:19:40 +00:00
Glenn Maynard 395b06b5c0 fix comment 2005-12-30 04:36:53 +00:00
Glenn Maynard aa2ca76c17 prefs out of PrefsMan 2005-12-30 04:19:55 +00:00