edit: whoops, i fixed a bug that made it not work in some situations (i've no idea how it worked at all before).
https://dl.dropbox.com/u/11111638/Dolphi...20paths.7z
http://codepad.org/PQcYMdQo
https://dl.dropbox.com/u/11111638/Dolphi...20paths.7z
http://codepad.org/PQcYMdQo