Commit Graph

12639 Commits

Author SHA1 Message Date
Chris Danford 08964e340b remove ScreenGameOver code, replace with ScreenAttract 2004-12-09 04:20:09 +00:00
Glenn Maynard 6558f6f7de This comment is incorrect. deflateReset() doesn't leak; it resets the
object to a just-initialized state.  deflateEnd() is correct (no comment
needed for that; it's obvious, I don't know why I used deflateReset to
begin with).

zlib doesn't appear to do anything special with allocations; running
the following:

#include <zlib.h>
main()
{
	z_stream z; z.zalloc = NULL; z.zfree = NULL;
	inflateInit2( &z, -MAX_WBITS ); inflateReset( &z );
}

under Valgrind shows:

==17033== 7080 bytes in 1 blocks are possibly lost in loss record 1 of 1
==17033==    at 0x1B904EDD: malloc (vg_replace_malloc.c:131)
==17033==    by 0x1B91D4B4: zcalloc (in /usr/lib/libz.so.1.2.1.2)
==17033==    by 0x1B91D608: inflateInit2_ (in /usr/lib/libz.so.1.2.1.2)
==17033==    by 0x80485A4: main (in /home/glenn/a.out)
2004-12-09 04:07:14 +00:00
Charles Lohr 9a93860c6a Major memory leak fix regarding packages.
The reason that only some people were experiencing a major memory leak
was that it had to do with packages, a lot of devs don't use packages.

This leak could not be found through conventional methods, as zlib's ram
seems to be allocated from the global ram.
2004-12-09 02:09:32 +00:00
Josh Allen 0292eb99c1 Don't limit max players for net evaluation to 32. 2004-12-08 05:35:03 +00:00
Glenn Maynard 268dafa582 update option names that are now identical to their StepMania.ini name 2004-12-07 10:06:44 +00:00
Glenn Maynard 8d0bf6039c simpler mechanism: doesn't require a separate function for each preference;
requires only one line in ScreenOptionsMasterPrefs, not two (still needs
appropriate metrics); doesn't require that the metric is in PrefsManager
2004-12-07 10:05:14 +00:00
Glenn Maynard 607c22fef9 add PrefsManager::GetPreferenceByName 2004-12-07 10:04:19 +00:00
Glenn Maynard 823eac2631 make g_ConfOptions a vector 2004-12-07 09:49:03 +00:00
Glenn Maynard dbb52c70d7 real fix for options 2004-12-07 09:22:38 +00:00
Glenn Maynard f7bb6ef29e grr, not quite 2004-12-07 08:32:29 +00:00
Glenn Maynard 8e57c4ca76 This should fix options menu crashes. Adding casts to the MOVE() macros
didn't make it work, since there was no cast overload to bool&, etc; it
just forced the (non-POD) type to that type, which resulted in the struct
being clobbered.
2004-12-07 08:28:24 +00:00
Charles Lohr 295ae2d961 Oops. 2004-12-07 06:06:01 +00:00
Charles Lohr 9e8cbeb8df Verify that we won't call a method on a non-existant element.
This seems to be the root of a handfull of crashes.
2004-12-07 05:53:03 +00:00
Charles Lohr c3f154dd27 Hmm.. Maybe this'll fix it. 2004-12-07 03:24:14 +00:00
Glenn Maynard ed097b0a5d cleanups (working on cleaner ConfOption/Preference integration) 2004-12-07 02:47:21 +00:00
Glenn Maynard d3180e8690 cleanup 2004-12-07 02:42:50 +00:00
Glenn Maynard 63e2b2be99 move a couple preferences out of PrefsManager 2004-12-07 01:48:46 +00:00
Glenn Maynard a663219b8a move a couple preferences out of PrefsManager
- eventually, this will reduce the gargantuan PrefsManager
 - adding prefs doesn't require modifying PrefsManager.h and recompiling a lot
 - starting with these options because they aren't in ScreenOptionsMaster
2004-12-07 01:47:32 +00:00
Glenn Maynard ba929b8e71 move more common stuff out of the template class, so g_pvpSubscribers is
more useful
2004-12-07 01:44:17 +00:00
Glenn Maynard c37a82ed40 more general string<->value functions 2004-12-07 01:43:06 +00:00
Glenn Maynard d9cfe446ce fix preference names 2004-12-07 01:41:55 +00:00
Glenn Maynard bc07b82eed add Preference.h 2004-12-07 00:52:34 +00:00
Glenn Maynard 04e4406cbb move ScreenSystemLayer into Screens 2004-12-07 00:34:19 +00:00
Glenn Maynard dac3c2b978 update 2004-12-07 00:09:47 +00:00
Glenn Maynard 495a418884 Previously, the main mount loop was unlocking the thread and then immediately
re-locking it.  In some threads implementations (Linux 2.6), this causes the
mount thread to hog the lock, which causes SetMountThreadState to hang.  Move
the "check and delay" part of the mount thread outside of the lock, so other
threads have opportunity to get the lock.
2004-12-07 00:06:59 +00:00
Glenn Maynard 4bde245842 m_fd isn't used anymore 2004-12-06 23:47:23 +00:00
Chris Danford 0f2b0bd119 add checkpoints 2004-12-06 08:28:38 +00:00
Glenn Maynard 11ea219e12 fix FreeAllLoadedFromProfiles possibly rarely missing some edits 2004-12-06 07:39:26 +00:00
Glenn Maynard c425d193ae new never returns null 2004-12-06 07:34:25 +00:00
Glenn Maynard 8428fc6cfc fix obscure memory leak 2004-12-06 07:32:29 +00:00
Glenn Maynard 0745485124 remove DisableRadar 2004-12-06 06:44:09 +00:00
Glenn Maynard 01e4acc8fe remove DISABLE_RADAR.
"DisableRadar=0     // turn this to 1 if you are experiencing trouble with the groove radar (voodoo3's)"

Theme metrics are not the correct place for dealing with driver bugs; users
can't be told to hack metrics.ini to make their system work.  (I havn't seen
any reports of problems here in a long time, anyway.)
2004-12-06 06:43:27 +00:00
Glenn Maynard 394982b461 fix "0 // foo" -> true 2004-12-06 06:41:31 +00:00
Glenn Maynard f0c9196995 fix Assertion '!actor.GetID().empty()' failed 2004-12-06 06:22:32 +00:00
Glenn Maynard aa2062e380 cleanup
fix hold notes on 2p side
2004-12-06 05:34:40 +00:00
Glenn Maynard 7e2adc093a simplify 2004-12-06 05:25:00 +00:00
Glenn Maynard 26d07ff58c simplify 2004-12-06 05:19:10 +00:00
Glenn Maynard ad8b7c19b7 cleanup 2004-12-06 05:17:56 +00:00
Glenn Maynard 18e70ed3c3 missing metric 2004-12-05 21:14:26 +00:00
Glenn Maynard 7a722d759e simplify 2004-12-05 21:11:51 +00:00
Glenn Maynard 02c637ca88 cleanup
remove SAFE_RELEASE
2004-12-05 21:09:31 +00:00
Glenn Maynard 13ed1ceb51 description 2004-12-05 20:58:04 +00:00
Chris Danford 730787aacb name cleanup: State->Screen 2004-12-05 11:59:39 +00:00
Chris Danford 2d7d2a054b use SelectNone rows 2004-12-05 11:59:05 +00:00
Chris Danford e0b31f5354 add new row type, SELECT_NONE used in operator menu 2004-12-05 11:55:35 +00:00
Chris Danford 9545db8cb4 move "unlock" and "sound" into GameCommand 2004-12-05 11:54:43 +00:00
Chris Danford a56f11b221 move "unlock" and "sound" into GameCommand 2004-12-05 11:49:29 +00:00
Chris Danford 58b52c680f convert tiny screens to GameCommands 2004-12-04 23:24:14 +00:00
Chris Danford d8ed815e0e SortOrder strings cleanup 2004-12-04 22:41:34 +00:00
Chris Danford 0bc5f079ca remove SortOrder from WheelItemData. Use the SortOrder in m_Action instead. 2004-12-04 22:36:29 +00:00