Commit Graph

453 Commits

Author SHA1 Message Date
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
Chris Danford 1e6f968d8e add AdditionalCourseFolders pref 2006-08-14 20:05:35 +00:00
Steve Checkoway 559e2c80fa Check additional song folders for extra stage information. 2006-08-07 03:11:32 +00:00
Steve Checkoway 0d3c9f8e06 Allow themes to specify extra stage player and song options. 2006-08-07 01:53:58 +00:00
Steve Checkoway 0f199dc7bc Cleanup. 2006-08-07 01:23:59 +00:00
Chris Danford 270b8d94c5 seperate fast load for regular and additional songs 2006-06-15 10:54:55 +00:00
Steve Checkoway 288d9c70e5 Fix crash caused by loading edit courses from profiles. 2006-06-14 05:43:50 +00:00
Chris Danford af3e1c571c move Steps searching out of song into SongUtil so that it can be shared with CourseEntry 2006-06-13 01:10:37 +00:00
Steve Checkoway 47e7ba3657 Invalidate trail caches for edit courses on unlocks. 2006-06-12 10:49:44 +00:00
Chris Danford ad52784da4 remove group hack 2006-05-31 05:11:10 +00:00
Steve Checkoway 34a63dd8db Fix crash on extra stage. 2006-05-20 09:00:35 +00:00