diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cdutils.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index 9ac78e0..7130c87 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -335,6 +335,12 @@ int cdutils::show_entry(struct DirEntry * dir) { strncpy(pbuf, (char *) &(dir->id), dir->N); pbuf[dir->N] = 0; + if ((dir->N == 1) && (pbuf[0] == 0)) { + strcpy(pbuf, "."); + } + if ((dir->N == 1) && (pbuf[0] == 1)) { + strcpy(pbuf, ".."); + } printm(M_BARE, "%6i - %8i - %2i/%02i/%04i - %2i:%02i:%02i%+03.1f - %c%c%c%c%c%c%c%c - %s\n", dir->Sector, dir->Size, dir->Day, dir->Month, dir->Year + 1900, dir->Hour, dir->Minute, dir->Second, ((float) dir->Offset) / 4, @@ -463,8 +469,8 @@ int cdutils::show_iso_infos() { printm(M_BARE, " 132 - 8- PSize : %li\n", *((long int *) &(buffer[132]))); printm(M_BARE, " 140 - 4- 1SLPath: %i\n", *((short int *) &(buffer[140]))); printm(M_BARE, " 144 - 4- 2SLPath: %i\n", *((short int *) &(buffer[144]))); - printm(M_BARE, " 148 - 4- 1SBPath: %i\n", swap_dword(*((short int *) &(buffer[148])))); - printm(M_BARE, " 152 - 4- 2SBPath: %i\n", swap_dword(*((short int *) &(buffer[152])))); + printm(M_BARE, " 148 - 4- 1SBPath: %i\n", swap_word(*((short int *) &(buffer[150])))); + printm(M_BARE, " 152 - 4- 2SBPath: %i\n", swap_word(*((short int *) &(buffer[154])))); memcpy(pbuff, buffer + 190, 128); pbuff[128] = 0; printm(M_BARE, " 190 - 128- VStId : %s\n", pbuff); |