Commit Graph
26 Commits
Author SHA1 Message Date
Kyzentun 2b4cabfb57 Added keybinding for reloading songs on SSM, and lua function for doing it from lua. Added NeverCacheList preference for WIP groups that should never be cached. Rewrote TimingData::CopyRange in preparation for using it to copy/paste timing data from the selected area in edit mode. 2015-03-31 15:20:37 -06:00
Kyzentun 8b09da8e64 Various changes to speed up start up time:
Added delay_save_cache to SongCacheIndex so that it doesn't write the entire cache index file after every song is loaded when loading songs.
Added m_SongsByDir to SongManager so that GetSongFromDir doesn't have to walk the entire list of songs.
Minor changes to when LoadEnabledSongsFromPref occurs and how SanityCheckGroupDir works to speed up loading.
Song::ReloadFromSongDir removes cache file to force an actual reload from the song dir instead of reloading from the cache.  ReloadFromSongDir exposed to lua.
Reordered Actor::LoadFromNode to put Command first because that case is more common.
Course::GetTrailUnsorted reserves entries before starting to save time reallocating.
join in RageUtil calculates the final size of the concatenated strings reserves it to save time reallocating.
Added time log file to RageLog for profiling.
2015-03-30 17:45:52 -06:00
Colin Wallace 473974e52f Add ability to delete songs from disk at the song selection screen (Ctrl+Backspace) 2015-03-27 05:22:55 +00:00
Kyzentun 3fb36af157 Separate styles for players. Notefields positioned between margins. Edit mode works for kickbox. 2014-12-09 22:27:00 -07:00
Ben "root" Anderson a040c4a586 1) SOMEONE can't spell "accessible" 2) Global commenting consistency 3) persistance -> persistence 2013-11-30 09:50:54 -06:00
Devin J. Pohly 8815da5f1f replace SongManager::GetSongFromSteps with use of song pointer 2013-01-20 19:51:59 -05:00
Jason Felds 10f0fa54f2 Added GetNumLockedSongs() Lua binding.
This gets the number of songs that are locked for any reason.

I wonder why the unlocked songs functions say that songs locked
by unlock entries are counted there, but fair enough.
2011-09-16 21:52:27 -04:00
AJ Kelly 183888f4f1 [SongManager] Add SongToPreferredSortSectionName(song), WasLoadedFromAdditionalSongs(song), and WasLoadedFromAdditionalCourses(course) Lua bindings 2011-08-27 15:23:20 -05:00
AJ Kelly 8d5b50e876 [SongManager] Added GetCoursesInGroup(sCourseGroup,bIncludeAutogen), GetSongGroupBannerPath(songGroup), GetCourseGroupBannerPath(courseGroup), DoesSongGroupExist(songGroup), DoesCourseGroupExist(courseGroup), GetPopularSongs() Lua bindings. 2011-08-27 13:18:41 -05:00
Mark Cannon e1a447cc36 revert henke's loadingwindow "improvements"; if you're reading this, henke, you do *NOT* sacrifice readability for misguided optimization, and you do *NOT* use a globally externed variable for something with a useful lifetime of part of one function 2011-08-06 21:33:49 +00:00
Jason Felds 3d155c9970 NOW I start moving prototypes to headers?
I need to be more consistent...gah, hungry.
2011-06-12 19:35:24 -04:00
Henrik Andersson 1dfb3a6f9a [loading window] More use of the global instead of as an argument. 2011-06-04 23:21:33 +02:00
Jason Felds cf33620d04 Add doxygen, plan for new functions.
We need a way to ensure that all of the songs we get
actually have charts for the present gametype.
2011-05-30 13:57:09 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds d9a195d4c2 More docs. 2011-02-27 21:36:34 -05:00
Jason Felds 90516a934c Bot test. 2011-02-25 22:49:43 -05:00
Jason Felds d6f08c27cb Hodgepodge of doxygen. Long way to go. 2011-02-13 11:14:58 -05:00
AJ Kelly def882ad6c [SongManager] Added GetSongRank(Song) Lua binding. 2010-12-26 13:44:46 -06:00
Marcio Barrientos f982672795 Added 2 new lua classes
SetPreferredSongs(string) and SetPreferredCourses(string)
The files have to be named "SongManager <name>.txt"
Example: SONGMAN:SetPreferredSongs("mysongs.txt")
calls the file "SongManager mysongs.txt"
2010-08-29 14:43:16 -06:00
AJ Kelly ac5c370bc2 more comment/cleanup 2010-07-25 19:40:21 -05:00
Alberto Ramos 23a1cc37d4 MusicWheel::JumpToNext/PrevGroup, functions tweaked (thanks juanelote)
Metric added, [MusicWheel]::HideSections, will restrict showing one group at time, it you want to see the other groups use the next/prev group code, defaulted to "false"
Also group changing is allowed via gamebuttons in case of those who wants to take advantage of the codedetector too, "false" as default
SongManager::GetSongGroupByIndex, gets groups by index (helpful in Jump to group functions, thanks to juanelote for this too).
2010-07-25 11:29:05 -06:00
AJ Kelly 3254bfe804 Fix a crash that occured when changing themes that had differing numbers of song/course group colors. 2010-06-03 23:14:55 -05:00
AJ Kelly dca9182138 various cleanup and commenting 2010-03-14 19:46:05 -05:00
AJ Kelly 777745b7fb sm4svn sync part 2.
528089b: remove preferred group filtering (leaving the setting in for later use) [Glenn Maynard]
96821ad: fix pump routine right side DownLeft not drawn [Chris Danford]
fd88c62: easier debug stepping [Chris Danford]
2010-02-13 13:37:03 -06:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00