From: | Jesse McClusky |
Date: | 9 Sep 2000 at 05:58:31 |
Subject: | AMIOPEN: Oh, BTW (nasty line of VP code) |
I discovered this a while ago, but only just now thought to share it.
It's a single line of VP code that gives you a pointer to the current
tool's full path name. It's totally undocumented internal stuff, so
DO NOT USE THIS. There. That said, here it is: (:
cpy [__thistool - 4] + $15, p0
The result is a pointer in p0 that you could use like this:
printf "This tool's name and full path is '%s'\n", p0
Make sure you use two underscores (_) before "thistool".
Remember: Don't use this in your code because IT MAY
BREAK AT ANY TIME.
'nough said. (:
Jesse
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html