Commit Graph

446 Commits

Author SHA1 Message Date
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
Glenn Maynard 302b978b34 move some prefs out of PrefsMan 2005-12-19 00:26:43 +00:00
Glenn Maynard c4c66841ec move some prefs out of PrefsMan 2005-12-19 00:18:33 +00:00
Chris Danford 353e0c5b6e break up arch stuff into smaller .cpp files to fix smpackage build and not pull in unnecessary stuff 2005-12-16 04:16:09 +00:00
Glenn Maynard ddce0cc239 remove old 2005-12-15 19:00:15 +00:00
Chris Danford ec51af900e CString -> RString for files used by smpackage 2005-12-10 08:15:44 +00:00
Chris Danford 299e1f7d68 add memcard blacklist by OsMountDir and UI to disable specific drives 2005-11-27 01:50:10 +00:00
Chris Danford 730a113ed6 enumerate resolutions
use mixed case for prefs values
2005-11-26 07:22:33 +00:00
Glenn Maynard 90ad56522c move GetCommandlineArgument, g_argc and g_argv into RageUtil.cpp,
so tests don't have to duplicate stuff, and because PrefsManager
uses it
2005-11-22 21:18:43 +00:00
Chris Danford 7e1cc9ce0f change PRODUCT_NAME".ini" to "Preferences.ini"
add Clear Preferences and Clear Keymaps to smpackage
2005-11-12 07:03:49 +00:00
Chris Danford 81037f05cd move Preferences from ThemeManager to completely in PrefsManager
Also, allow Defaults.ini and Static.ini to have sections
2005-11-09 10:55:30 +00:00
Chris Danford 72bfacbdfe add multitexture debug toggle 2005-11-07 03:59:05 +00:00
Chris Danford 0f0caf7972 Writable files in "Save", read-only files in "Data". This simplifies the installer and packaging. 2005-10-30 23:08:38 +00:00
Glenn Maynard f3d55ef26e allow disabling song backgrounds (without disabling backgrounds entirely
with 0% Brightness, which gives an ugly black background)
2005-10-29 20:59:08 +00:00
Glenn Maynard 8c9b57dbae m_BackgroundMode -> m_RandomBackgroundMode 2005-10-29 20:04:57 +00:00
Chris Danford 6e5b3a5ed8 fix PrefsManager::m_sCurrentGame not current, so GamePrefs from Static.ini weren't being used 2005-10-28 01:44:19 +00:00
Glenn Maynard 4c62c63e84 move m_sDefaultLocalProfileID into ProfileManager 2005-10-27 17:47:42 +00:00
Glenn Maynard a9038f82dd move memory card prefs into MemoryCardManager 2005-10-27 17:37:59 +00:00
Glenn Maynard fe19cdf726 don't FixSlashes on the memory card OS path. This is a system path, not a RageFile path, so it doesn't need to follow our rules. 2005-10-27 17:33:01 +00:00
Glenn Maynard a9ac27c730 move SoundResampleQuality into RageSoundReader_Resample 2005-10-27 16:51:18 +00:00
Glenn Maynard df966ddaf6 remove Xbox prefs from PREFSMAN (not tested on Xbox) 2005-10-27 13:32:47 +00:00
Chris Danford 5d7885c764 move game prefs into PrefsManager 2005-10-27 04:54:45 +00:00
Chris Danford e00a57e05e use Preference1D 2005-10-26 23:09:56 +00:00
Chris Danford 9b3a007551 reduce dependencies 2005-10-26 02:27:48 +00:00
Glenn Maynard fad2ac6ff1 never mind this sentinel 2005-10-24 02:23:12 +00:00
Glenn Maynard 98270a69a2 add SoundPreferredSampleRate 2005-10-23 22:11:48 +00:00
Chris Danford 53dc198c89 use product name for settings ini 2005-10-20 14:16:55 +00:00
Chris Danford 265a637be8 remove default volume sentinel value and just use 1.0 2005-10-18 07:32:35 +00:00
Chris Danford feb1bfb0fc naming cleanup: rename scoring "Tier1"s to "W1"s (short for "Window 1")
add Preference1D so that we can index into the grading and life values
2005-10-09 04:30:59 +00:00
Glenn Maynard 19a5aa6cbd remove unused 2005-10-09 01:52:45 +00:00
Chris Danford 32464990af enum name cleanup to reflect the generic calculations 2005-10-08 04:50:28 +00:00