Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard bd3e4232f2 fix sm_crash 2004-05-07 00:40:02 +00:00
Glenn Maynard cd8f571d60 remove unneeded header 2004-05-06 09:35:14 +00:00
Glenn Maynard 04f226214b always compile LinuxThreadHelpers 2004-05-06 09:32:23 +00:00
Glenn Maynard d3c19e9a46 use HAVE_OSS_GETVERSION
don't print "version 0.0.0" if ioctl(OSS_GETVERSION) fails
2004-05-06 09:30:03 +00:00
Glenn Maynard 46c51ad33a add OSS_GETVERSION check 2004-05-06 09:25:15 +00:00
Glenn Maynard 7d85e171e6 fix warning 2004-05-06 09:18:15 +00:00
Glenn Maynard f8090d709a #define CRASH_HANDLER 2004-05-06 09:14:10 +00:00
Glenn Maynard c678693d7f cleanup 2004-05-06 09:13:37 +00:00
Glenn Maynard c4d501081f s/__THROW/throw()/
fix assertion handling when !CRASH_HANDLER
improve assertion handling output
2004-05-06 09:08:41 +00:00
Glenn Maynard 2bf13a89f0 move exception dialog behavior to HandleException 2004-05-06 09:06:24 +00:00
Glenn Maynard fd848f2b0c fix compile when !CRASH_HANDLER
fix core dumping when !CRASH_HANDLER
2004-05-06 08:41:34 +00:00
Glenn Maynard 24af9a4825 add SignalHandler::ResetSignalHandlers 2004-05-06 08:40:53 +00:00
Glenn Maynard e5de37f23c fix HAVE_DECL_SIGPWR check 2004-05-06 08:26:09 +00:00
Glenn Maynard a65778ab4d s/==/=/ 2004-05-06 07:19:24 +00:00
Glenn Maynard f9f10e2372 more license updates 2004-05-06 02:40:33 +00:00
Glenn Maynard 33a04b79de beginning GPL->X11 license transition
The conventions I'm using are to put the entire copyright notice at the bottom
of each file, and to put the summary of the source file's use at the top of the
header.

Putting the license text in each file avoids confusion, and is normal practice
for many projects.  Putting it at the bottom gets it out of the way; it's a
ton of clutter to put at the top.

The description is in the header.  People who don't know what a class is for,
or how to use it, are probably looking at the header to see the interface,
not the implementation, so let's put the description in there.  Keep it brief
(one line); any substantial implementation notes should go in the source file.
2004-05-06 00:42:06 +00:00
Glenn Maynard 1896f45ecc add checkpoint 2004-05-06 00:01:06 +00:00
Glenn Maynard 01e54b95a0 disable lock ordering checks for now 2004-05-05 20:37:14 +00:00
Glenn Maynard f7c858b89d fix ScreenSetTime 2004-05-05 20:31:15 +00:00
Glenn Maynard 3527c9dae8 hush harmless warning, fix output 2004-05-05 20:05:09 +00:00
Glenn Maynard 0c485b164e cleanup 2004-05-03 20:51:20 +00:00
Glenn Maynard 599211722d this can be done with GameState --player, --mode now 2004-05-03 20:28:24 +00:00
Glenn Maynard d6d10331eb fix comment 2004-05-03 20:14:52 +00:00
Glenn Maynard cc9f2507c0 don't accept functions as lua return values, otherwise forgotton "()"
can lead to silent errors
2004-05-03 04:38:08 +00:00
Glenn Maynard 3525b20e03 cleanup 2004-05-03 01:39:25 +00:00
Glenn Maynard 6f49d80e6e fix text info not displayed immediately the second time the editor is entered
in the same session
fix unresponsive text info
2004-05-03 01:37:49 +00:00
Glenn Maynard 0c992b56e3 fix ScreenSelectMusic menuelement draw order 2004-05-03 00:21:28 +00:00
Glenn Maynard df799e36e6 fix missing elements 2004-05-03 00:14:41 +00:00
Glenn Maynard cf98aa5f7c fix ScreenEditMenu transitions 2004-05-03 00:08:56 +00:00
Glenn Maynard 90c80308f9 fix missing ScreenEditMenu elements 2004-05-03 00:08:22 +00:00
Glenn Maynard 712e1ec445 If a sound is started, plays for a while, then stopped, repositioned and
started quickly, queued position data from the previous play will still
be flushed.  We clear already-flushed data in StopMixing (pos_map.clear())
so we don't have stale data, but some is being re-flushed afterwards because
we have the same ID.  Change sound IDs when stopping a sound.

(The symptom was the first frame in Play mode in the editor would process
using an old position; the position was usually later in the song, which
sometimes marked hold notes as dead.)
2004-05-02 23:54:39 +00:00
Glenn Maynard 89f9660a6a asserts 2004-05-02 23:48:51 +00:00
Glenn Maynard ff54ceafea update 2004-05-02 03:55:20 +00:00
Glenn Maynard ef47972465 use fast dither for banner cache 2004-05-02 03:51:25 +00:00
Glenn Maynard fa83dfc552 fix excessive rounding error in mySDL_BlitTransform (completely opaque
surfaces would be set to an alpha value of 0xFB); fix latent alpha channel
bug
2004-05-02 03:49:22 +00:00
Glenn Maynard ac81016af4 when dithering, round the alpha channel instead of truncating 2004-05-02 03:41:33 +00:00
Glenn Maynard 82595ecfe1 fix minor memleaks: a few bytes per screenshot, and a harmless "leak"
if IMG_LoadTyped_RW fails
2004-05-02 02:15:01 +00:00
Glenn Maynard 20462b7118 optimize PrintInventoryForSong; cuts a few seconds from stats.html writing 2004-05-02 01:06:16 +00:00
Glenn Maynard 3abc4617e0 update 2004-05-02 00:22:32 +00:00
Glenn Maynard 22d7bf1508 cleanup 2004-05-02 00:21:47 +00:00
Glenn Maynard e96fb67f6c remove old file 2004-05-02 00:18:54 +00:00
Glenn Maynard 363534a046 remove Song::GetNumNotesWithGrade 2004-05-02 00:12:31 +00:00
Glenn Maynard 61c2f730de GetNumNotesWithGrade is very slow when we have to call it on every
grade type, since we have to search for the given grade; instead, use
GetGrades, which returns all grade counts in one pass
(fixes grade sort speed regression; 10x speedup)
2004-05-02 00:11:41 +00:00
Glenn Maynard 34ada5897d add Profile::GetHighScoresForASong
add optimized Profile::GetGrades to fix extremely slow grade sort creation
2004-05-02 00:08:42 +00:00
Glenn Maynard c00f96941b add StepsID::MatchesStepsType 2004-05-02 00:06:55 +00:00
Glenn Maynard 1d2d1927a6 remove old code 2004-05-01 21:54:09 +00:00
Glenn Maynard 197ec50a66 fix inconsistency between StepsID::FromSteps and StepsID::LoadFromNode
causing song scores to not be found
2004-05-01 21:53:28 +00:00
Glenn Maynard 4ffec3f572 add change lists from snapshots
this differs from NEWS: NEWS only contains changes interesting to
end users upgrading from the last major release (though perhaps this
isn't a useful distinction anymore, since it's been about two decades since
the last release)
2004-05-01 07:25:23 +00:00
Glenn Maynard d4352ed68b simplify 2004-05-01 06:26:57 +00:00
Glenn Maynard 084042fc47 log ALSA kernel version earlier 2004-05-01 06:25:24 +00:00
Glenn Maynard 761bcf7eae avoid loading ALSA if not needed 2004-05-01 06:24:37 +00:00
Glenn Maynard 3285433fb9 optimize FTOC (about 7x faster in g++, not benchmarked in VC) 2004-05-01 05:21:39 +00:00
Glenn Maynard eeb79a5ee0 implement missing lrintf 2004-05-01 05:17:58 +00:00
Glenn Maynard b48043dc2e search all_sounds, not owned_sounds 2004-05-01 05:15:21 +00:00
Glenn Maynard 84ac4d3fc9 fix crash if a sound is played, copied, and then the parent is given over
to RageSoundManager; don't think this ever actually happens
2004-05-01 05:13:09 +00:00
Glenn Maynard 53fd27b885 disable "drive not ready", etc. dialogs 2004-05-01 01:44:07 +00:00
Glenn Maynard 41662b7239 fix spurious mkdir(d:/) calls 2004-05-01 01:40:58 +00:00
Glenn Maynard 50b593f7d2 If a drive isn't ready, don't try to mount it at all; it may cause mkdir()
calls to be made (if eg. mounting "D:\foo"), causing "volume not ready"
dialogs.  This happens with removable devices like memory card readers
that don't have a device.

I think this is generally incorrect: if a user has a memcard reader, we'll ignore
it on the first change (no device is installed), and then we'll never actually
notice when a card is inserted, since the drive letters don't actually
change.  I don't have a memcard reader to test this, so I'm punting on
this for now.
2004-05-01 01:26:38 +00:00
Glenn Maynard 07fa62c417 move "join player" logic into GameState
add --player, --mode
2004-04-30 07:48:02 +00:00
Glenn Maynard f013cbf3f8 allow setting courses
fix setting steps not working if the song was previously set
2004-04-30 07:46:46 +00:00
Glenn Maynard 9948172998 add more "why" returns from ModeChoice::IsPlayable 2004-04-30 07:27:01 +00:00
Glenn Maynard bfb552014c add --metric 2004-04-30 07:26:06 +00:00
Glenn Maynard 81eaecbc63 add interface for multiple options with the same name 2004-04-30 07:24:29 +00:00
Glenn Maynard efc61b33d6 simplify RangeOverlaps
add ContainedByRange
2004-04-29 00:33:09 +00:00
Glenn Maynard 7b9802b2bf remove "SaveToProfile" 2004-04-28 23:42:23 +00:00
Glenn Maynard ba8e2196c4 remove "SaveToProfile" option; options are always saved to the profile now 2004-04-28 23:38:27 +00:00
Glenn Maynard 4044ec4073 we give a warning about this earlier, so let's not die because of it here 2004-04-28 23:36:18 +00:00
Glenn Maynard 73271fa3d2 fix DifficultyIcon hiding when no song is selected
(Note that in general, actors should never SetHidden(false) on themselves,
since that will cause themed "hidden,1" commands to be overridden.)
2004-04-28 22:57:42 +00:00
Glenn Maynard c27418fbbf don't throw if a song uses an unknown audio type 2004-04-28 01:26:32 +00:00
Glenn Maynard 33c7b4670d better error messages for unsupported WAV types 2004-04-28 01:24:28 +00:00
Glenn Maynard ba00dbe76b simplify and clarify error handling 2004-04-28 01:23:56 +00:00
Glenn Maynard 55975d9ba9 a18 2004-04-27 06:41:02 +00:00
Glenn Maynard b62efeb7f7 fix missing metric 2004-04-27 06:34:27 +00:00
Glenn Maynard 6804fe8554 fix g++ warnings 2004-04-26 23:10:16 +00:00
Glenn Maynard 78feda2ad9 fix old filename 2004-04-26 22:52:40 +00:00
Glenn Maynard 1781f0148a fix error reporting 2004-04-26 05:29:16 +00:00
Glenn Maynard c046875db1 fix warnings 2004-04-26 05:26:52 +00:00
Glenn Maynard a593763aac fix crash with empty vertex objects 2004-04-26 05:26:20 +00:00
Glenn Maynard 0324b49bde fix menu timer having a shadow even though ON_COMMAND says not to 2004-04-26 05:05:18 +00:00
Glenn Maynard 97aaf75dd9 fix missing metrics 2004-04-26 04:54:33 +00:00
Glenn Maynard 5463520a12 fix rounding error: acosf(cosom) becomes 0, causing div/0 2004-04-26 03:11:19 +00:00
Glenn Maynard 8f7e6894dc fix StepsID::operator<
beware: invalid < operations (where a<b and b<a can both be true)
lead to crashes with std::map on glibc
2004-04-26 00:08:51 +00:00
Glenn Maynard 9707e6bb0c allow omitting alpha from "1,1,1", like #FFFFFF 2004-04-26 00:07:25 +00:00
Glenn Maynard 84e873bb28 remove debugging 2004-04-26 00:06:42 +00:00
Glenn Maynard fe9459b29e fix accepting input after pressing start if it comes in the same update
(test case: F2, enter, enter)
2004-04-25 23:36:00 +00:00
Glenn Maynard fc18e6186d increase decoder thread priority by 32 instead of 5; log errors 2004-04-25 23:25:38 +00:00
Glenn Maynard b0ca9ef1ea debugging 2004-04-25 23:22:46 +00:00
Glenn Maynard 08c00bd689 fix backing out of the stage screen causes the stage counter to be increased 2004-04-25 23:17:08 +00:00
Glenn Maynard 162d5581ba simplify ScreenStage; add "MinimumDelay" metric 2004-04-25 22:52:15 +00:00
Glenn Maynard 2db701b557 comment 2004-04-25 22:51:16 +00:00
Glenn Maynard 94161d0789 ScreenStage metric update 2004-04-25 22:50:17 +00:00
Glenn Maynard bf03cda720 ScreenStage metric update 2004-04-25 22:41:37 +00:00
Glenn Maynard e939841c29 simplify ScreenStage 2004-04-25 22:40:31 +00:00
Glenn Maynard 0121c60e2b implement Transition::GetTweenTimeLeft 2004-04-25 22:38:55 +00:00
Glenn Maynard cb9efe946d fix ChangeSelection in !SharedPreviewAndCursor mode 2004-04-25 22:37:54 +00:00
Glenn Maynard 4e073c4776 cleanup 2004-04-25 08:54:10 +00:00
Glenn Maynard f03f1b527b remove code that's been commented out for eons 2004-04-25 08:40:14 +00:00
Glenn Maynard 6ed0ad1953 noisy 2004-04-25 05:56:31 +00:00
Glenn Maynard be3fb45f33 don't make challenge steps edits in difficult courses 2004-04-25 05:52:21 +00:00
Glenn Maynard 18e66dc2d0 fix remainder tween off 2004-04-25 05:51:09 +00:00