(08-04-2010, 10:56 AM)vsub Wrote: 1. The pcsx2 pnach writer,save the file with lower case letters and pcsx2 can work with both upper and lower case pnach files
both are working fine on pcsx2 and this editor open the file normally but when you try to save,it delete all of the lower case letters and leave it like this 9482,thus an error will appear because this is not a correct CRC.
That is a problem and I think I have solved it. But I won't post the next version until tomorrow.
(08-04-2010, 10:56 AM)vsub Wrote: Edit:I actually find the reason but I have no idea why.If you have ANY file on any directory with one letter long name(no matter where)this will happen.I had a file named g.txt on my desktop and that was the reason for that problem
I understand the reason for this problem. I am using this code in the file browser:
f.getName().substring(f.getName().length() - 6).toLowerCase().equals(".pnach")
So what happens if the length of the file is five characters or less then f.getName().length() - 6 is negative and the substring function crashes with an error. All I need to do is a simple check for the length of the filename and it will solve the problem:
f.getName().length() > 5 && f.getName().substring(f.getName().length() - 6).toLowerCase().equals(".pnach")
Incidentally, try creating a file with only three characters in its name and no extension. It should cause the same problem with FFXED if you use the PSU filter.