Glenn Maynard
83ea1a6807
bind GetSongColor
2007-04-07 22:19:12 +00:00
Steve Checkoway
0e219a16aa
Add GetSongColor binding.
2007-04-07 13:00:14 +00:00
Steve Checkoway
00d44c63bc
GetRandomSong() was returning songs in the same order every time using the internal RNG. Use g_RandomNumberGenerator instead.
2007-04-07 10:04:08 +00:00
Steve Checkoway
9d75ef8bf2
While I'm at it, const.
2007-04-07 06:13:00 +00:00
Steve Checkoway
72ed44a52e
Don't use istring, just use a comparison object that ignores case.
2007-04-07 06:04:40 +00:00
Steve Checkoway
0cb56b6ec2
GetAllSongs() -> GetSongs().
2007-04-07 05:36:40 +00:00
Steve Checkoway
a9187f5ce4
Store the group names in the map case insensitively.
2007-04-07 05:27:29 +00:00
Steve Checkoway
54035d6334
API change. SONGMAN->GetSongs( groupName ) returns a const reference to the songs in the group. If you want a copy of the songs, just copy the return value:
...
vector<Song *> vSongs = SONGMAN->GetSongs( groupName );
If you don't want to change the songs, get a const reference instead to keep it from copying.
2007-04-07 05:10:29 +00:00
Steve Checkoway
de3f6e0618
Working at cleaning up the n different ways to get songs. 1 is probably sufficient.
2007-04-07 02:34:17 +00:00
Steve Checkoway
1ffcdab974
Apply speed up loading patch from https://sourceforge.net/tracker/?func=detail&atid=421366&aid=1691830&group_id=37892
2007-04-03 23:04:25 +00:00
Steve Checkoway
33e69bc576
Free the courses before the songs as per prior comments.
2007-04-01 11:24:40 +00:00
Chris Danford
0160e23705
style cleanup: use FOREACH_ENUM( X, x ) everywhere instead of FOREACH_X( x ) for consistency
...
The FOREACH_X defines are not very useful, and they were created back before FOREACH_ENUM was convenient.
2007-02-23 22:29:42 +00:00
Chris Danford
9061e2c1c1
move stage logic out of SongManager
...
allow selecting between multiple StepsTypes on ScreenSelectMusic (ala Pump's combined single/double list)
2007-02-23 21:13:45 +00:00
Chris Danford
f77647b5ad
enum name cleanup: DIFFICULTY_* -> Difficulty_*
2007-02-22 07:18:05 +00:00
Glenn Maynard
2d0bb7955a
GAME_BASE_NOTESKIN_NAME -> DEFAULT_NOTESKIN_NAME.
...
(This isn't the base noteskin that other noteskins derive from, just
the default preference.)
2007-02-04 04:07:14 +00:00
Glenn Maynard
e4ea02f177
fix repeated slow updates
...
fix memory leak (apToDelete[i] was not actually being deleted)
2007-01-19 06:39:43 +00:00
Glenn Maynard
58bb20d6b3
Profile courses may refer to profile steps, so free profile courses first.
2007-01-19 06:36:49 +00:00
John Bauer
7ebfd65a9b
Make it so .sm files can contain \-escaped characters. Also, make the
...
writer for .dwi files replace control characters with dwi-safe characters.
Other file formats are unaffected.
2006-12-01 22:15:26 +00:00
John Bauer
bf6da7d8b4
Reorder some includes.
2006-11-29 14:57:21 +00:00
John Bauer
dd0d56e4af
Whoops! We can't revert an autogen course from disk. My bad.
...
TODO: is there a cheaper way to fix up the autogen courses?
2006-11-28 06:56:33 +00:00
Glenn Maynard
c2581734b1
const
2006-11-13 18:28:29 +00:00
John Bauer
e15285ab55
Fix SongManager::Invalidate. Call it from places it is needed:
...
ScreenEdit::RevertFromDisk, ScreenEdit's Save routine, and
ScreenEditMenu's Delete Steps routine. This fixes the bug where
deleting a step chart sometimes causes interesting behavior
but usually just causes a CTD next time you run Oni mode. It also makes
sure data precalculated from the songs is correctly recalculated when
ScreenEdit changes a song.
2006-11-13 17:07:42 +00:00
Glenn Maynard
e32d59ad30
remove unused
2006-11-12 03:58:48 +00:00
Glenn Maynard
c6e62ae92d
revert. Need a better approach.
2006-11-12 03:26:25 +00:00
John Bauer
34ebb84f63
Remove some old, unused, unusable code.
2006-11-11 21:31:52 +00:00
John Bauer
c3e39e12a3
Fix several annoying edit mode bugs, mostly by fixing the Song copy
...
operator and the various uses of it.
- revert file from disk: keeps old BPM. The BPMS on disk are added to
the existing BPM information!
- edit mode turns X stepcharts into 2X when reverting
- sometimes edit mode loses an entire stepchart: open a stepchart,
change to a new stepchart, exit without going back, original chart gone
- edit a chart, make a change in a different chart, exit from the first chart:
change made in different chart doesn't revert
- normally, when you create a stepchart and don't save it after editting it,
it is deleted. however, if you create a stepchart, don't save it, and exit
edit mode while looking at a different chart, the chart isn't deleted.
Some existing bugs are not fixed, though:
- delete the last stepchart for a step type. CTD.
- Edit one of the fake doubles stepcharts for a song that doesn't have
real doubles stepcharts. Exit without doing anything. CTD. This is
probably the same problem as the previous bug.
- delete a song or a steps that happens to be part of a trail. Trail is now
broken. Some other edits should affect a trail as well, but don't.
2006-11-10 07:02:27 +00:00
John Bauer
5d2bf93725
Make all uses of the Steps* in the TrailEntry class use an accessor method.
...
This makes it simple to switch to something else, such as using a StepsId
instead of a Steps*.
2006-11-10 05:04:09 +00:00
Steve Checkoway
30d9410b65
Unneeded.
2006-11-01 10:45:51 +00:00
Glenn Maynard
2ae28fb758
fix every top-level directory is scanned for courses
2006-10-15 07:30:58 +00:00
Glenn Maynard
84edde11b8
simplify
2006-10-15 07:16:57 +00:00
Glenn Maynard
df90e4f4c2
simplify
2006-10-15 07:15:40 +00:00
Glenn Maynard
a6b000a81b
don't think this was meant to be merged out
2006-10-15 07:13:41 +00:00
Glenn Maynard
78a91ba878
revert. You brought back a type I've been trying to remove.
2006-10-07 22:33:24 +00:00
Steve Checkoway
73663c4f8a
CourseDifficulty.
2006-10-07 10:49:53 +00:00
Glenn Maynard
4bb479a445
standard enums for some preference types
2006-10-07 07:43:18 +00:00
Glenn Maynard
b67e57864e
Invalid
2006-10-07 03:32:16 +00:00
Glenn Maynard
c690fdcfe4
unify registration
2006-09-29 00:01:32 +00:00
Glenn Maynard
f4975f1f54
simpler Lua boilerplate
2006-09-27 20:30:29 +00:00
Glenn Maynard
f567a0fd28
cleanup arg order
2006-09-26 08:54:54 +00:00
Glenn Maynard
578c6d5726
simplify singleton registration
2006-09-21 04:42:45 +00:00
Steve Checkoway
6ea2a41b00
Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible.
2006-09-17 01:19:19 +00:00
Steve Checkoway
335f6a4790
Only flush songs/courses/edits directories.
2006-09-16 03:31:27 +00:00
Jason Felds
914b1f3aff
Move Extra Stage 2's difficulty cap to metrics.
2006-08-20 05:55:09 +00:00
Steve Checkoway
eb4b5597bf
Include the note skin.
2006-08-19 08:57:50 +00:00
Steve Checkoway
0ab5be64af
Lua bindings.
2006-08-18 00:11:30 +00:00
Glenn Maynard
63a344005c
unintentional
2006-08-17 02:00:44 +00:00
Glenn Maynard
1ad871d075
add GetCourseRank
2006-08-17 01:58:58 +00:00
Glenn Maynard
5c66cd5e88
add GetSongRank
2006-08-17 01:56:29 +00:00
Glenn Maynard
982ffa6a65
use IsMarathon, IsLong
2006-08-17 00:37:40 +00:00
Chris Danford
7eeccfa412
simplify loading of courses in Courses/ dir
2006-08-15 09:23:10 +00:00