Ok just a quick question. I've got this code that reads a list of folders:
[code]if findfirst('*.',faDirectory,sr) = 0 then
until findnext(sr) <> 0;
It goes ok when reading in the list, but it is here when the list is being processed that I'm getting a "List boundry out of range" error:
[code]for i := 1 to Games.Items.Count -1 do
if Games.Items.Text <> '' then
s := Games.Items.Strings[i];
if Games.Items.Strings[i] = '.' then
if Games.Items.Strings[i] = '..' then
if s = '_' then Games.Items.Delete(i);
if s = '%' then Games.Items.Delete(i);
It is ment to sort out folders starting with _ and % characters.
Just so you know, it is ment to hide damaged data folders on PlayStation Portable. One methode to do this is by inserting __SCE__ before the folder names and %__SCE__ before the folders that PSP sees as corrupted. Now don't ask me what __SCE__ stands for, I know it works when it comes to hiding the corrupted data. So what I need to know is how to detect these strings and then removing these items so the users don't reprotects them. There is also another thing I need help with. Each PSP homebrew comes with 2 folders named slightly different: Name and Name%. And it is the Name% that is intresting in this case. I need to detect the last percent and if present remove the item.
Anyone up for the task? Humble thanks in advance if you are capable of helping me out.