Glenn Maynard
dfded1c1ab
print 44100, not "44100.000000"
2004-05-10 00:39:03 +00:00
Glenn Maynard
91589e2896
maybe fix assertion failure when writing machine records
2004-05-10 00:26:08 +00:00
Glenn Maynard
d8ed56b81f
fix uninitialized value
2004-05-09 23:08:16 +00:00
Glenn Maynard
8f6d7362ae
checkpoint
2004-05-09 08:27:20 +00:00
Glenn Maynard
196c9d3c31
remove old files
2004-05-09 08:26:18 +00:00
Glenn Maynard
b131b68871
remove old checkpoints
2004-05-09 07:27:29 +00:00
Glenn Maynard
f87bfe8b34
no, this is needed (but for a different reason)
2004-05-08 23:27:36 +00:00
Glenn Maynard
4f369120e2
fix obscure crash on close
2004-05-08 21:11:02 +00:00
Glenn Maynard
732024f1a6
remove unneeded code
2004-05-08 20:54:29 +00:00
Glenn Maynard
a5cc8adfef
fix mostly innocuous race condition: init ID before registering the sound,
...
or it might get sound position commits from other sounds due to the
uninitialized variable
2004-05-08 20:42:33 +00:00
Glenn Maynard
c6e2a10962
ScreenSelectGroup::PrevScreen
2004-05-08 06:43:51 +00:00
Glenn Maynard
7258f57c63
cleanup
2004-05-08 06:43:06 +00:00
Glenn Maynard
282e502e6d
fix ScreenSelectCharacter timer
2004-05-08 06:42:23 +00:00
Glenn Maynard
ccbe03e14e
fix uninitialized variable
2004-05-08 06:38:27 +00:00
Glenn Maynard
aee856bd95
cleanup
2004-05-08 06:28:15 +00:00
Glenn Maynard
e730e24c34
PrevScreen=ScreenTitleMenu
2004-05-08 06:27:14 +00:00
Glenn Maynard
841b888ba5
simplify
2004-05-08 06:26:24 +00:00
Glenn Maynard
3c5e4c6af8
simplify
2004-05-08 06:19:14 +00:00
Glenn Maynard
fbba857df4
ScreenSelectCourse::PrevScreen
2004-05-08 06:18:39 +00:00
Glenn Maynard
5cebceafcf
Add Screen::HandleScreenMessage, to handle common screen
...
messages. (Most screens don't call this base function right now.)
2004-05-08 06:18:06 +00:00
Glenn Maynard
d8e2a64889
fix missing elements
2004-05-08 06:10:16 +00:00
Glenn Maynard
1004bd8064
fix m_sprExplanation tween
2004-05-08 06:09:27 +00:00
Glenn Maynard
2e540b3931
simplify
...
add ScreenInstructions::PrevScreen
2004-05-08 06:00:08 +00:00
Glenn Maynard
0b2c5702a8
ScreenInstructions::PrevScreen
2004-05-08 05:59:16 +00:00
Glenn Maynard
7be6cddfe2
call base Screen::HandleScreenMessage at the end, not the
...
beginning
2004-05-08 05:55:28 +00:00
Glenn Maynard
a176ba50c7
simplify
...
fix draw order
2004-05-08 05:47:37 +00:00
Glenn Maynard
2d53c49f11
Don't fade in title menu options. It looks strange, since we're fading from
...
black on top of it, and the selected menu item doesn't fade in.
2004-05-08 04:13:10 +00:00
Glenn Maynard
74977f0459
fix spurious "Couldn't create :" errors
2004-05-08 03:16:22 +00:00
Glenn Maynard
bed5872199
buffer size, chunk size cleanup
...
use poll()
many systems (even 2.4) can now handle much smaller writeaheads with
software mixing
2004-05-08 03:02:25 +00:00
Glenn Maynard
fe9c19b446
Update SOUNDMAN earlier
2004-05-08 02:18:27 +00:00
Glenn Maynard
9c1a5f6957
encapsulate hold results in HoldNoteResult (HoldNoteScore + life)
...
instead of moving HoldNote::iStartRow forward while a hold note is
held, set HoldNoteResult::iLastHeldRow
fixes hold heads cycling through all note colors while held (wasn't very
visible due to the hold ghost) and GetSuccessfulHands bugs
2004-05-07 04:57:29 +00:00
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