Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Jul 10, 2024
1 parent 87a6422 commit 100e2ca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Hooks/BeatmapObjectsInTimeRowProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,18 @@ MAKE_HOOK_MATCH(
self, allObjectsTimeSlice, nextTimeSliceTime);
}

MAKE_HOOK_MATCH(BeatmapObjectsInTimeRowProcessor_ProcessColorNotesInTimeRow,
MAKE_HOOK_MATCH(BeatmapObjectsInTimeRowProcessor_HandleCurrentTimeSliceColorNotesDidFinishTimeSlice,
&BeatmapObjectsInTimeRowProcessor::HandleCurrentTimeSliceColorNotesDidFinishTimeSlice, void,
BeatmapObjectsInTimeRowProcessor* self,
GlobalNamespace::BeatmapObjectsInTimeRowProcessor::TimeSliceContainer_1<::GlobalNamespace::NoteData*>*
currentTimeSlice,
float nextTimeSliceTime) {
if (!Hooks::isNoodleHookEnabled())
return BeatmapObjectsInTimeRowProcessor_ProcessColorNotesInTimeRow(self, currentTimeSlice, nextTimeSliceTime);
return BeatmapObjectsInTimeRowProcessor_HandleCurrentTimeSliceColorNotesDidFinishTimeSlice(self, currentTimeSlice,
nextTimeSliceTime);

// TODO: Implement this properly

auto items = ListW<GlobalNamespace::NoteData*>(currentTimeSlice->items);

auto colorNotesData = NoodleExtensions::of_type<CustomNoteData*>(items);
Expand Down Expand Up @@ -236,11 +239,12 @@ MAKE_HOOK_MATCH(BeatmapObjectsInTimeRowProcessor_ProcessColorNotesInTimeRow,
}
}

BeatmapObjectsInTimeRowProcessor_ProcessColorNotesInTimeRow(self, currentTimeSlice, nextTimeSliceTime);
BeatmapObjectsInTimeRowProcessor_HandleCurrentTimeSliceColorNotesDidFinishTimeSlice(self, currentTimeSlice,
nextTimeSliceTime);
}

void InstallBeatmapObjectsInTimeRowProcessorHooks() {
INSTALL_HOOK(NELogger::Logger, BeatmapObjectsInTimeRowProcessor_ProcessColorNotesInTimeRow);
INSTALL_HOOK(NELogger::Logger, BeatmapObjectsInTimeRowProcessor_HandleCurrentTimeSliceColorNotesDidFinishTimeSlice);

INSTALL_HOOK(NELogger::Logger, BeatmapObjectsInTimeRowProcessor_HandleCurrentTimeSliceAllNotesAndSlidersDidFinishTimeSlice)
}
Expand Down

0 comments on commit 100e2ca

Please sign in to comment.