summaryrefslogtreecommitdiff
path: root/lib/cdutils.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2003-09-05 15:28:29 +0000
committerpixel <pixel>2003-09-05 15:28:29 +0000
commit23b21e9fa28cb317a86e2e8cfb1c8548d708f32f (patch)
tree87ee5ed995a74ad792a7c86392307e10ff13d75b /lib/cdutils.cpp
parent4a5e6ba6ba48ced51222dbda36a3d3dd99d75ec5 (diff)
Fixed more things... I'm starting to like MSVC! THAT'S NO GOOD!
Diffstat (limited to 'lib/cdutils.cpp')
-rw-r--r--lib/cdutils.cpp10
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);