porg
Active Member
My question was: How and when is drastic_file_info.txt considered(read) / updated(written to) ?I'm not really sure what you're asking..
That was clear to me, but thanks for confirming.the lines of drastic_file_info.txt tie a file names to gamecard ID and title.
So DraStic can display a game list to the user immediately, but in case the dir content changed, this list gets updated (in the background). If the game list update is completed, is the game list view then immediately refreshed? Accompanied with a message/overlay "ROM list has been updated", or just the list changing? The latter is possibly un/noticed by the user…The directories are scanned regardless of the drastic_file_info.txt file, the file is just there so it can quickly display some game data (title, header title, game code) without having to scan the game files themselves.
That could be omitted, therefore sped up, if my suggested check nr.1 would be implemented:Scanning the directory is fast, even if you have thousands of files, but (depending on your SD card) scanning thousands of zip files can take a long time, up to dozens of seconds.
Mod-date of "drastic_file_info.txt" and "." are the same?
So sooner or later you will have orphans in your game list! Games the user deleted on purpose from the SD card, but which still "clutter" the game list, and which would fail should they be attempted being launched.If new files are encountered that weren't in the info file they're added to it. Old files entries aren't removed, it only appends to the file.
Agree.It goes without saying that checksumming all of the files would defeat the purpose of the info file being there, since it'd be much slower than getting their header. The system fails if you change the directory so a file with the same name now contains a different game. I could check for this by putting a file timestamp in the info file. But this is a pretty strange and unusual thing to do so I don't bother.
In the latter 2 cases the user has to delete the drastic_file_info.txt as a whole, so that it gets regenerated), or if s/he understands the format of the file, erase the line with the orphaned game or correct the title (for the very very rare case where you place a new ROM under the same file name). This speaks for having drastic_file_info.txt visible, else a user suffering from the aforementioned phenomenona, has almost no way of guessing why his game "b" is still shown as "a" or why "c" is still shown in the game list although its file gone.
Or s/he may find this forum post, when trying to troubleshoot.