Commit Graph
16 Commits
Author SHA1 Message Date
Michael Votaw ede0b53f2b Updated notes on SORT parameter to indicate that it can actually be used with other parameters just fine, but the resutls can get kind of weird. 2024-03-06 01:45:26 -08:00
Michael Votaw f8ce3c7db2 Explicitly get song bpm when checking if song matches songCriteria (m_fSpecifiedBPMMax and m_fSpecifiedBPMMin are only set if #DISPLAYBPM is used in simfile) 2024-03-06 01:45:26 -08:00
Michael Votaw 44d3711743 Removing already outdated comment 2024-03-06 01:45:26 -08:00
Michael Votaw dcb1a2e3db Equals signs also need to be escaped when parsing #SONGSELECT parameters. 2024-03-06 01:45:26 -08:00
Michael Votaw bf5404a71a CourseWriterCRS now correctly escapes control characters for certain parameters
CourseLoaderCRS handles escaped control characters and commas
Added new parsing functions to CourseLoaderCRS, ParseCommaSeparatedList, and ParseRangedValue
2024-03-06 01:45:26 -08:00
Michael Votaw e8947d9f70 Added a new SmEscape parameter to allow us to specify what characters to escape (defaults to '\\', ':', ';')
Added new SmEscape function to handle escaping a vector of strings
Added SmUnescape() to remove the '\\' preceding an escaped character.
2024-03-06 01:45:26 -08:00
Michael Votaw 1d332bf960 Modified MsdFile::ReadBuf() so that escaped characters are still skipped when bUnescape == false
As of this commit, this won't affect anything except CourseLoaderCRS, because everywhere else is passing `true` for the bUnescape parameter.
2024-03-06 01:45:26 -08:00
Michael Votaw 68e0674164 Default bUseSongSelect to false when initializing CourseEntry (otherwise it might be true, which causes CourseWriterCRS to write the cache incorrectly) 2024-03-06 01:45:26 -08:00
Michael Votaw 20938b6c3c Updated CourseFormat.txt to replace the .. with - 2024-03-06 01:45:26 -08:00
Michael Votaw 79ddb377ad Removed comments to myself 2024-03-06 01:45:26 -08:00
Michael Votaw 5665d08a5f Removed now un-used CourseLoaderCRS::ParseCourseSongSort
Replaced '..' with '-' for ranged parameter delimiter
2024-03-06 01:45:26 -08:00
Michael Votaw 5b76ab1ba9 Uncommenting these lines from the original #SONG parsing, because I'm not sure why I commented it out to begin with. 2024-03-06 01:45:26 -08:00
Michael Votaw 0fe9c71fa3 Added description for the new #SONGSELECT course tag. 2024-03-06 01:45:26 -08:00
Michael Votaw 7831c42c83 Instead of calling rnd(), just select the average between iMaxDist and iMinDist.
This fixes an issue where a Course entry that only specifies a meter range will potentially select different songs for each difficulty.
2024-03-06 01:45:26 -08:00
Michael Votaw d73e210f57 Added Artists, min/max bpm, min/max duration to CourseEntry::GetTextDescription() 2024-03-06 01:45:26 -08:00
Michael Votaw c4d63052e2 Applied time signature fix to SMALoader::ProcessBeatsPerMeasure() 2024-02-08 01:35:06 -08:00