Commit Graph

443 Commits

Author SHA1 Message Date
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
Chris Danford f22d32f70a fix catalog.xml out of date after reloading songs 2006-05-16 06:01:12 +00:00
Chris Danford ede57d64ad add GetNumSelectableAndUnlockedSongs, add GetMD5ForString 2006-05-16 00:47:02 +00:00
Chris Danford 0f9d78b06d allow songman->Reload with FastLoad 2006-05-05 00:41:17 +00:00
Chris Danford acb136102f add wheel tweak metrics 2006-05-03 21:33:19 +00:00
Chris Danford 9fb36069f8 fix goofy unlocks after reload songs 2006-05-02 22:02:18 +00:00
Chris Danford 72ff9050aa fix null songs added to preferred list if unlock entry points to a null song or course 2006-05-02 08:18:54 +00:00
Chris Danford 40a2a382bd fix VC7 warning 2006-05-02 01:18:21 +00:00
Chris Danford 8814cb747d add courses preferred sort 2006-05-01 21:49:59 +00:00
Chris Danford 53e7a42ce5 automatically move unlocks to the bottom of the preferred sort list 2006-05-01 12:45:07 +00:00
Chris Danford 27c7482556 hide songs loaded from AdditionalSongFolders 2006-04-04 21:52:54 +00:00