Commit Graph

597 Commits

Author SHA1 Message Date
Steve Checkoway 4991a266df Remove unnecessary CACHED_REGISTER_CLASS. 2007-08-16 09:32:40 +00:00
Glenn Maynard 3e3c1deea4 We have a lot of duplicate, redundant checks between UNLOCKMAN->SongIsLocked
and Song::GetDisplayed/Song::NormallyDisplayed, which leads to inconsistency.

Make UnlockManager::SongIsLocked() handle both.  Returns a bitfield; most
cases only need to test true or false.

(Also adds m_bEnabled; not used yet.)
2007-08-13 21:20:51 +00:00
Glenn Maynard 4d3b3315b8 remove unused 2007-08-13 19:41:34 +00:00
Glenn Maynard 019ca31c0b CachedObjectPointer<Song> for StepsID 2007-08-12 22:13:25 +00:00
Glenn Maynard 66b6b168bb CachedObjectPointer<Song> for SongID 2007-08-12 22:03:59 +00:00
Glenn Maynard f2671274da don't unload edit steps while they're in use 2007-05-31 18:24:22 +00:00
Glenn Maynard 5a77e83b8a unused param 2007-05-25 22:13:38 +00:00
Glenn Maynard 5238dc27e3 don't HasBanner/HasBackground. It accesses the disk. 2007-05-19 01:02:54 +00:00
Chris Danford ba616e4195 add playback of bass and rhythm tracks 2007-05-17 03:26:50 +00:00
Chris Danford d2f6f8e03f experimental time signature support. Background changes and beat bars are currently the only things that are aware of time signature. Note coloring isn't aware of time signature yet. 2007-04-30 05:12:48 +00:00
Steve Checkoway 5a602a6fa2 Compute the file path cache one time. 2007-04-28 08:59:00 +00:00
Chris Danford 1b8e2be15f StartIndex -> StartRow 2007-04-25 22:42:40 +00:00
Chris Danford af6491320a add experimental lead track music file
This should be generalized to allow named music tracks
2007-04-24 03:15:00 +00:00
Glenn Maynard 1de53984ad Remove #SELECTABLE:ROULETTE. 2007-04-10 23:09:28 +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 f77647b5ad enum name cleanup: DIFFICULTY_* -> Difficulty_* 2007-02-22 07:18:05 +00:00
Steve Checkoway 61ae8c3c1b NotesLoader is just a namespace. If you want to load a particular directory, there's no need to create a specialized loader, just call NotesLoader::LoadFromDir(). 2007-02-14 12:26:36 +00:00
Steve Checkoway 1b2c9da350 Don't create a loader. 2007-02-14 10:09:05 +00:00
Chris Danford 35df8821ca add Lua GetOneSteps 2007-02-09 03:23:24 +00:00
Glenn Maynard 38aec56633 add paranoid BackUpAllSongSaves 2007-02-03 02:32:57 +00:00
Glenn Maynard a41f0c0dec SetSavedToDisk in Save(), not in SM_SaveSuccessful. When we save the
whole file, all steps are saved to disk; we were only marking the
active steps.  This sequence would cause steps to be wrongly deleted:
 1: create easy and medium steps for one steps type; save
 2: on another steps type, edit easy steps which were autogenned from the above
        change the steps
 3: f6 to change to medium steps steps which were autogenned from the above
 4: menu -> save
        This will save all data, but only medium will be marked saved to disk.
 5: f5 to change back to easy steps
 6: menu -> exit
        This will delete the easy steps, because they were not marked saved to disk.
2007-02-03 00:55:52 +00:00
Glenn Maynard f88111380a If writing the SM file fails, don't write cache, either. 2007-02-03 00:54:28 +00:00
Glenn Maynard 9d541532af error returns 2007-02-03 00:13:35 +00:00
Glenn Maynard cd5f4a6e39 SoundReader_FileReader -> RageSoundReader_FileReader 2006-11-30 04:22:38 +00:00
Glenn Maynard c895f1c29c SoundReader -> RageSoundReader 2006-11-29 09:16:59 +00:00
John Bauer cca2d60509 Fix RevertFromDisk using a method that preserves as many of the original
Steps* pointers as possible.  It is pointless to get rid of RevertFromDisk
entirely because all of the unpleasant side effects it can have are possible
using other tools in the editor.
2006-11-12 16:49:00 +00:00
Glenn Maynard 05bfda3f4b don't delete autogen steps; they're created and deleted by Song 2006-11-12 04:19:51 +00:00
Glenn Maynard c6e62ae92d revert. Need a better approach. 2006-11-12 03:26:25 +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
Steve Checkoway c4fe855aca Spacing. 2006-11-04 23:36:42 +00:00
Steve Checkoway 63bb4faf7d Make NotesWriterDWI also a namespace. 2006-11-04 23:36:11 +00:00
Steve Checkoway 0ed39a2f5e No persistent data so make it a namespace. 2006-11-04 23:28:33 +00:00
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +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 2dee2b1cf7 cleanup 2006-10-05 07:33:47 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard 153bcedd40 simpler Lua boilerplate 2006-09-27 20:03:31 +00:00
Glenn Maynard 982228b7e6 bind StepsType 2006-09-27 06:09:52 +00:00
Glenn Maynard a7b53444f8 NUM_STEPS_TYPES -> NUM_StepsType 2006-09-26 20:22:28 +00:00
Glenn Maynard 99ccb03ac7 update Difficulty 2006-09-26 05:04:14 +00:00
Steve Checkoway c8a2b7601c LogType -> string. 2006-09-24 03:57:26 +00:00
Steve Checkoway faf32603f1 Consistent user warnings. 2006-09-04 08:09:27 +00:00
Steve Checkoway 4606d68fdf Move warnings meant for the user to userlog.txt. These are as inconsistent in format as before but at least they're all in one place. 2006-09-03 05:16:09 +00:00
Steve Checkoway b939bdec8e Add a last beat hint. The real last beat will be at least as long as the hint. 2006-09-02 22:22:57 +00:00
Steve Checkoway 6fc2fbbc88 Bump. 2006-09-02 06:12:45 +00:00
Steve Checkoway 061e3fb07a When Steps have changed in memory but not on disk, calling Compress() could lose all changes in memory. Clear the file name to ensure this doesn't happen and reset it when the Song has been written to cache once more. 2006-08-22 13:45:36 +00:00
Steve Checkoway f4d1b8aaa2 Bump. 2006-08-21 13:06:35 +00:00
Glenn Maynard e69aa02e51 bind HasStepsTypeAndDifficulty 2006-08-20 04:40:32 +00:00
Glenn Maynard 9895b8c93c unneeded 2006-08-20 03:23:44 +00:00