Skip to content

Commit

Permalink
load osu files with color tags
Browse files Browse the repository at this point in the history
this just allows the file to be loaded, it doesn't actually do anything with the color tags
  • Loading branch information
MinaciousGrace committed May 21, 2019
1 parent 1a31e74 commit ed0c393
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Etterna/Models/NoteLoaders/NotesLoaderOSU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ OsuLoader::ParseFileString(string fileContents)
SeparateTagsAndContents(fileContents, sections, contents);

map<string, map<string, string>> parsedData;

if (sections.size() == 7) {
bool colurz = (sections.size() == 8 &&
std::count(sections.begin(), sections.end(), "Colours"));
if (sections.size() == 7 || colurz) {
for (int i = 0; i < (int)sections.size(); ++i) {
for (auto& content : contents[i]) {
auto& str = content;
Expand Down

0 comments on commit ed0c393

Please sign in to comment.