From 29cd30cb6564d21ffd12bad86e7cdf4459adf4d4 Mon Sep 17 00:00:00 2001 From: "J. Morio Sakaguchi" Date: Tue, 18 Nov 2025 11:02:17 -0800 Subject: [PATCH] Make public methods virtual Experimenting with a shared cue sheet buffer. Need the ability to override the public methods. --- src/CUEParser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CUEParser.h b/src/CUEParser.h index 0421673..a2937bd 100644 --- a/src/CUEParser.h +++ b/src/CUEParser.h @@ -98,18 +98,18 @@ class CUEParser CUEParser(const char *cue_sheet); // Restart parsing from beginning of file - void restart(); + virtual void restart(); // Get information for next track. // Returns nullptr when there are no more tracks. // The returned pointer remains valid until next call to next_track() // or destruction of this object. - const CUETrackInfo *next_track(); + virtual const CUETrackInfo *next_track(); // Same as next_track(), but takes the file size into account when // switching files. This is necessary for getting the correct track // lengths when the .cue file references multiple .bin files. - const CUETrackInfo *next_track(uint64_t prev_file_size); + virtual const CUETrackInfo *next_track(uint64_t prev_file_size); protected: const char *m_cue_sheet;