Skip to content

Commit

Permalink
Beginnings of CD-ROM cue sheet support
Browse files Browse the repository at this point in the history
  • Loading branch information
PetteriAimonen authored and erichelgeson committed May 14, 2023
1 parent 8bd8885 commit 4cbddef
Show file tree
Hide file tree
Showing 8 changed files with 452 additions and 82 deletions.
5 changes: 1 addition & 4 deletions lib/CUEParser/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
"authors": [{ "name": "Petteri Aimonen", "email": "[email protected]" }],
"license": "GPL-3.0-or-later",
"frameworks": "*",
"platforms": "*",
"build": {
"srcFilter": "CUEParser.cpp"
}
"platforms": "*"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Simple CUE sheet parser suitable for embedded systems.
*
* Copyright (c) 2023 Rabbit Hole Computing
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand Down Expand Up @@ -37,6 +37,11 @@
#include <string.h>
#include <strings.h>

CUEParser::CUEParser(): CUEParser("")
{

}

CUEParser::CUEParser(const char *cue_sheet):
m_cue_sheet(cue_sheet)
{
Expand Down Expand Up @@ -154,7 +159,7 @@ const char *CUEParser::read_quoted(const char *src, char *dest, int dest_size)

src++;
}

src++;

// Copy text until ending quote
Expand Down
4 changes: 3 additions & 1 deletion lib/CUEParser/CUEParser.h → lib/CUEParser/src/CUEParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Simple CUE sheet parser suitable for embedded systems.
*
* Copyright (c) 2023 Rabbit Hole Computing
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand Down Expand Up @@ -63,6 +63,8 @@ struct CUETrackInfo
class CUEParser
{
public:
CUEParser();

// Initialize the class to parse data from string.
// The string must remain valid for the lifetime of this object.
CUEParser(const char *cue_sheet);
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ lib_deps =
minIni
BlueSCSI_platform_RP2040
SCSI2SD
CUEParser
build_flags =
-O2 -Isrc -ggdb -g3
-Wall -Wno-sign-compare -Wno-ignored-qualifiers
Expand Down
Loading

0 comments on commit 4cbddef

Please sign in to comment.