Skip to content

Commit 5b1c1d8

Browse files
committed
fix populateslots.
more debug outputs.
1 parent 859edad commit 5b1c1d8

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

Diff for: sdl/slot_list_gen.c

+15-1
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,8 @@ int scan_tree(ui_context * ctx)
575575
drive = 0;
576576
freeslotfound = 0;
577577
slotnumber = 1;
578+
579+
DirectoryEntry.attributes = 0x00;
578580
// Get the file name extension.
579581
getext(dir_entry.filename,(char*)&DirectoryEntry.type);
580582

@@ -589,7 +591,7 @@ int scan_tree(ui_context * ctx)
589591
ctx->slot_map[slotnumber>>3] |= (0x80 >> (slotnumber&7));
590592
ctx->change_map[slotnumber>>3] |= (0x80 >> (slotnumber&7));
591593

592-
DirectoryEntry.attributes=0x00;
594+
DirectoryEntry.attributes = 0x00;
593595
if(dir_entry.is_readonly)
594596
DirectoryEntry.attributes |= FILE_ATTR_READ_ONLY;
595597

@@ -628,6 +630,18 @@ int scan_tree(ui_context * ctx)
628630
printf("\nError : Can't add %s ! No free space into this cfg file !\n",dir_entry.filename);
629631
}
630632
}
633+
else
634+
{
635+
#ifdef DEBUG
636+
printf("DEBUG : %s not supported/filtered !\n",dir_entry.filename);
637+
#endif
638+
}
639+
}
640+
else
641+
{
642+
#ifdef DEBUG
643+
printf("DEBUG : %s already found in slot %d !\n",dir_entry.filename,slot);
644+
#endif
631645
}
632646
}
633647
}

Diff for: version.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#define VERSIONCODE "1.83a"
2-
#define DATECODE "25 June 2018"
1+
#define VERSIONCODE "1.84a"
2+
#define DATECODE "2 August 2018"

0 commit comments

Comments
 (0)