diff options
| author | 2011-08-25 17:58:46 +0000 | |
|---|---|---|
| committer | 2011-08-25 17:58:46 +0000 | |
| commit | 2811f1f8f7cbea4bdbb0959e020f44d46ca27abc (patch) | |
| tree | 3c1a74b46430836f2156c07e69704f6932edc46b /src/lib/util/chdcd.c | |
| parent | 7bb097de2e8e0c52227910dcb41e84280710394b (diff) | |
Cleanups and version bump
Diffstat (limited to 'src/lib/util/chdcd.c')
| -rw-r--r-- | src/lib/util/chdcd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/util/chdcd.c b/src/lib/util/chdcd.c index b5ce1de3a77..0c827e36098 100644 --- a/src/lib/util/chdcd.c +++ b/src/lib/util/chdcd.c @@ -38,7 +38,7 @@ static char linebuffer[512]; ***************************************************************************/ static astring get_file_path(astring &path) -{ +{ int pos = path.rchr( 0, '\\'); if (pos!=-1) { path = path.substr(0,pos+1); @@ -313,7 +313,7 @@ chd_error chdcd_parse_nero(const char *tocfname, cdrom_toc *outtoc, chdcd_track_ astring path = astring(tocfname); - infile = fopen(tocfname, "rt"); + infile = fopen(tocfname, "rt"); path = get_file_path(path); if (infile == (FILE *)NULL) @@ -460,7 +460,7 @@ static chd_error chdcd_parse_gdi(const char *tocfname, cdrom_toc *outtoc, chdcd_ astring path = astring(tocfname); - infile = fopen(tocfname, "rt"); + infile = fopen(tocfname, "rt"); path = get_file_path(path); if (infile == (FILE *)NULL) @@ -526,12 +526,12 @@ static chd_error chdcd_parse_gdi(const char *tocfname, cdrom_toc *outtoc, chdcd_ } astring name; - - tok=strtok(NULL," "); + + tok=strtok(NULL," "); name = tok; if (tok[0]=='"') { do { - tok=strtok(NULL," "); + tok=strtok(NULL," "); if (tok!=NULL) { name += " "; name += tok; @@ -541,7 +541,7 @@ static chd_error chdcd_parse_gdi(const char *tocfname, cdrom_toc *outtoc, chdcd_ } strncpy(outinfo->fname[trknum], path.cstr(), 256); strncat(outinfo->fname[trknum], name, 256); - + sz=get_file_size(outinfo->fname[trknum]); outtoc->tracks[trknum].frames=sz/trksize; @@ -593,7 +593,7 @@ chd_error chdcd_parse_cue(const char *tocfname, cdrom_toc *outtoc, chdcd_track_i UINT32 wavlen, wavoffs; astring path = astring(tocfname); - infile = fopen(tocfname, "rt"); + infile = fopen(tocfname, "rt"); path = get_file_path(path); if (infile == (FILE *)NULL) { @@ -869,7 +869,7 @@ chd_error chdcd_parse_toc(const char *tocfname, cdrom_toc *outtoc, chdcd_track_i astring path = astring(tocfname); - infile = fopen(tocfname, "rt"); + infile = fopen(tocfname, "rt"); path = get_file_path(path); if (infile == (FILE *)NULL) |
