Commit Graph
21505 Commits
Author SHA1 Message Date
Glenn Maynard d8eac51039 move IgnoredMessageWindows to Dialog, rename to IgnoredDialogs 2005-12-31 05:03:26 +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 7c2220b403 CrashHandler::ForceCrash 2005-12-31 04:42:24 +00:00
Glenn Maynard 515134e584 unused 2005-12-31 04:19:53 +00:00
Glenn Maynard c9ec1d251f cleanup 2005-12-31 04:11:10 +00:00
Glenn Maynard 2120a39d2a Fix dependency: Crash.cpp should not depend on GraphicsWindow. 2005-12-31 04:09:56 +00:00
Glenn Maynard 0e599ca582 make debug_crash private 2005-12-31 04:02:51 +00:00
Glenn Maynard 4d97933c43 move into namespace 2005-12-31 04:00:41 +00:00
Glenn Maynard 644801396c move globals into namespace 2005-12-31 03:56:25 +00:00
Glenn Maynard a4716e3ecf cleanups 2005-12-31 03:32:14 +00:00
Glenn Maynard 502bd70521 static 2005-12-31 03:29:11 +00:00
Glenn Maynard d454d09298 This code isn't worth it. It's only used for one driver. It's
mostly useful for pointing casual users to drivers, but any URLs
we give them will just go out of date, and 404s don't help people.
It's also too heavyweight to be done in ArchHooks; aim to not use
anything in it that we don't want to always include.

(I'm sort of undecided about this. This definitely needs to be out
of HOOKS; it could be moved to GraphicsWindow.  It's potentially
useful, in theory, but it'd be a major hassle to maintain and always
be incomplete.  Since it's only used for one ancient card and has
never been used for anything else, I'm just removing it for now.)
2005-12-31 03:26:18 +00:00
Glenn Maynard 6f7a4418d7 cleanup 2005-12-31 03:05:15 +00:00
Glenn Maynard 418bce60a8 SoundDrivers into RageSoundManager 2005-12-31 02:35:49 +00:00
Glenn Maynard 037b3c8ac0 doesn't exist 2005-12-31 02:20:33 +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 2255a72086 use IPreference::GetPreferenceByName 2005-12-31 01:59:52 +00:00
Glenn Maynard f4570700fa build fix 2005-12-31 01:40:24 +00:00
Glenn Maynard d7daf00e8a fix -r argument 2005-12-31 01:36:29 +00:00
Glenn Maynard 2f03572ef8 cleanup 2005-12-31 01:29:59 +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 aac313fdd3 cleanup 2005-12-31 00:48:59 +00:00
Glenn Maynard 5316ffdecc move some preferences to where they're used 2005-12-30 19:46:10 +00:00
Glenn Maynard f4278bf86a prototypes 2005-12-30 19:36:25 +00:00
Glenn Maynard 2128cc180a unneeded 2005-12-30 19:29:40 +00:00
Glenn Maynard 75d2dfadd9 cleanup 2005-12-30 19:12:10 +00:00
Glenn Maynard 2084896f7d RageSoundUtil::Attenuate 2005-12-30 19:04:18 +00:00
Glenn Maynard 08dd174e5c RageSoundManager::AttenuateBuf -> RageSoundUtil::Attenuate
comment
2005-12-30 19:03:09 +00:00
Steve Checkoway be00b88919 Partial revert of byte swapping macros, just copy them out of the header. Simplify and fix CHECK macro. 2005-12-30 14:54:43 +00:00
Steve Checkoway e9d4fb0cdf machine/endian.h is getting picked up on OS X with gcc 4.0 but no endian.h exists. 2005-12-30 14:30:39 +00:00
Steve Checkoway e6ff11e0b0 Remove file. 2005-12-30 13:29:31 +00:00
Steve Checkoway 3c8f18483b Make ASSERT_M and FAIL_M into safe function-like macros. 2005-12-30 13:26:22 +00:00
Steve Checkoway ada5f4f00f Use ASSERT like a function. 2005-12-30 13:19:40 +00:00
Glenn Maynard 7cc18a89cd provide a default localizer 2005-12-30 08:35:33 +00:00
Glenn Maynard 6db0cf831a no longer needed 2005-12-30 08:30:29 +00:00
Glenn Maynard 0062b24e2f RageException is a very low-level helper (usable by any code). Eliminate
StepMania.cpp dependency.
2005-12-30 08:23:56 +00:00
Glenn Maynard 79c00ae191 Don't evaluate MESSAGE twice in FAIL_M. Reduces the code
cost of assertions.
2005-12-30 08:01:47 +00:00
Glenn Maynard 000a896258 use implicit initialization of POD types to simplify SubscriptionManager,
so it's not essentially a templated singleton type (old version will be
phased out)
2005-12-30 07:59:59 +00:00
Glenn Maynard 6e6fcb746a "XToThemedString" uses theme metrics. We don't want DateTime
(used by XmlFile) to depend on THEME, so use localized strings.

We may *always* want LocalizedString.  One reason we may not
is if we start using the DynamicThemeMetric paradigm more.
That evaluates expressions when they're used, which allows
metrics to change dynamically.  However, we may really not
want to do that for localized strings, since it would complicate
translation, so we may want to restrict localized strings to
pre-evaluation anyway.
2005-12-30 07:24:30 +00:00
Glenn Maynard b9f3b4a790 if localizer already registered on construction, refresh 2005-12-30 07:14:21 +00:00
Glenn Maynard 622a6e6698 return ref, to allow returning it from functions that also return ref 2005-12-30 07:12:52 +00:00
Glenn Maynard 9225fa0196 SMPackage includes lua now. Merge DateTimeLua back into DateTime. 2005-12-30 06:20:41 +00:00
Glenn Maynard b6cda2fc47 simplify 2005-12-30 06:12:31 +00:00
Glenn Maynard 65336b7e5c partial test fix 2005-12-30 06:08:57 +00:00
Glenn Maynard 9de5ac05a1 compile fix 2005-12-30 05:48:45 +00:00
Glenn Maynard f939b76f49 i dumb 2005-12-30 05:38:20 +00:00
Glenn Maynard d67288d8a3 simplify 2005-12-30 05:38:02 +00:00