Commit Graph

341 Commits

Author SHA1 Message Date
Glenn Maynard aeebc89106 update typing 2006-09-26 04:08:12 +00:00
Glenn Maynard f68b0e4440 remove old 2006-09-26 04:08:11 +00:00
Glenn Maynard c011185fa9 new binding method 2006-09-26 01:54:36 +00:00
Glenn Maynard 969efc7f0f fix GetTotalSeconds 2006-09-07 22:11:54 +00:00
Steve Checkoway 076205f683 Bind. 2006-09-01 03:05:47 +00:00
Steve Checkoway 214873da10 Header cleanup. 2006-08-19 23:35:31 +00:00
Steve Checkoway ba1a57b15d Bindings. 2006-08-19 20:49:16 +00:00
Glenn Maynard 62def4a5e6 bind GetEstimatedNumStages 2006-08-19 05:04:17 +00:00
Jason Felds bf548b5e89 General cleanup. 2006-08-18 02:41:55 +00:00
Glenn Maynard 5526d54b8b bind IsAutogen 2006-08-16 22:54:28 +00:00
Steve Checkoway e7c5b14196 Remove timing code. 2006-07-30 11:36:18 +00:00
Steve Checkoway 5bffacf3a6 Optimize. With a debug build, this is taking less than a third as long as before. Idea (and some code) from:
https://sourceforge.net/tracker/?func=detail&atid=421366&aid=1511048&group_id=37892
2006-07-30 11:35:46 +00:00
Steve Checkoway 879de00412 Simplify. 2006-07-30 00:09:16 +00:00
Chris Danford 29d77f5c8c search songs by a genre list
move MenuDir to SSMaster header
GoalType name cleanup
2006-07-11 06:51:46 +00:00
Chris Danford 380f97f903 fix course entry sorting 2006-07-03 00:05:13 +00:00
Chris Danford 97d28100ae use SongCriteria and StepsCriteria to resolve songs for Trail 2006-07-02 06:04:53 +00:00
Chris Danford 1092237cb0 don't choose the same song for 2 TrailEntries in a row 2006-06-14 09:16:28 +00:00
Chris Danford c7124728e0 move song finding to SongUtil 2006-06-13 03:51:18 +00:00
Steve Checkoway 2ea4cb1ead Don't allow locked songs in edit courses. Allow limiting the number of songs in an edit course to a preference. Nonpositive numbers are infinitely many songs per course (well, up to the hard limit of MAX_ENTRIES_PER_COURSE=50). 2006-06-12 10:49:04 +00:00
Steve Checkoway 8de96799ad Add better logging. It'd be nice if these values were checked as they were read in from Preferences.ini. 2006-05-20 06:16:09 +00:00
Charles Lohr a84d30b92e Fix crash from MusicWheel when in BuildWheelItemData(), and under case SORT_ENDLESS_COURSES. Automatically generated courses will cause there to be no group name, and the default (preferred) sort. When this function does not return a value, and it gets assigned to c (In MusicWheel), in some cases we will get a crash.
By default, I use white in the metrics, this doesn't look "great," but it should be up to the themer.
2006-05-17 06:49:55 +00:00
Sean Burke 498c8fcefb I suppose that this is a better way to do it 2006-05-16 10:04:36 +00:00
Chris Danford cb65313c83 fix bogus assert fires for autogen courses 2006-05-04 07:09:08 +00:00
Chris Danford 8814cb747d add courses preferred sort 2006-05-01 21:49:59 +00:00
Chris Danford bc6f682ebb add lua bindings 2006-05-01 12:45:42 +00:00
Chris Danford ab84dffa0f disallow locked steps in random courses 2006-03-27 21:53:33 +00:00
Steve Checkoway cc7a528269 The distinction between a random course entry and a nonfixed one is not clear. A newly created course entry would have IsRandomSong() return false yet when placed in a course, the course would return AllSongsFixed() as false. Redefine a random song to be pSong = NULL.
Remove the sentinel value since the songs are already shuffled. Picking the first one is enough.
2006-02-21 02:29:22 +00:00
Steve Checkoway 6bc529f51b This only modifies mutable data so make it const to silence the compiler warning about calling it from a const function. 2006-02-21 01:54:50 +00:00
Steve Checkoway 439c0f2011 IsFixed and AllSongsAreFixed were identical. IsFixed -> AllSongsAreFixed. 2006-02-21 01:48:01 +00:00
Steve Checkoway e6a456e1c3 Handle random entries. 2006-02-21 01:36:49 +00:00
Glenn Maynard 62a0ac1370 spacing 2006-02-14 11:16:39 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 47010623cd move Course autogen logic into CourseUtil 2006-01-09 21:57:41 +00:00
Chris Danford 44225ad379 XToThemedString -> XToLocalizedString 2006-01-07 04:11:29 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Chris Danford 36c7d8e0ed enum name cleanup 2005-12-01 03:20:25 +00:00
Glenn Maynard d10c1b08ad Avoid calling GetSongsValidForRandom for static courses. 2005-10-31 01:26:24 +00:00
Glenn Maynard d6ca8b3777 break out GetSongsValidForRandom 2005-10-31 01:19:54 +00:00
Glenn Maynard a58a2a2bb2 This seems to have optimized an uncommon case at the cost of the
common case.  Normally, most songs in most courses are static.  Previously,
in those cases, the filtered song list would never be generated; now it's
generated for every course.  Optimize the filtering (erase() on a vector is
slow).
2005-10-31 01:18:10 +00:00
Glenn Maynard 692a52673e Too-big commit in one chunk makes code review impossible--please break
things apart better.  Trying to figure out what just happened ...
2005-10-31 00:54:52 +00:00
Steve Checkoway b6df02af4c Cannot use FOREACH here since --song is not valid for the first element. 2005-10-31 00:32:30 +00:00
Chris Danford 74b107f8bb don't bother checking for a group match when we already have an exact song match 2005-10-31 00:27:48 +00:00
Thad Ward df136da381 Optimize. This brings the ALL_COURSES sort time down. I didn't check the time
spent in this code in release, but in debug this brings the time spent building
musicwheel items in ALL_COURSES sort mode from 30 seconds with my 1600+
songs in about 80 groups down to 12 seconds. Release is down to 6 seconds,
but I don't know where it was to start. This time would increase nearly
exponentially with the number of songs and groups.
2005-10-30 21:07:50 +00:00
Glenn Maynard d19569178c bind GetAllTrails 2005-10-23 07:52:02 +00:00
Chris Danford 015bcd7b1b remove bForceSecret. Use "noshowcourse" instead. 2005-09-11 01:42:16 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Glenn Maynard 41b08697ca simplify/optimize 2005-09-09 03:47:33 +00:00
Glenn Maynard 0506fee3a7 optimization: avoid GetTrail when meter specified 2005-09-09 02:22:18 +00:00
Glenn Maynard 8b0bd8fd11 cleanup 2005-09-03 23:42:51 +00:00