English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. Asm / Hardware (http://eab.abime.net/forumdisplay.php?f=112)
-   -   Assembler APP.PATH (http://eab.abime.net/showthread.php?t=67426)

obiwanken 17 January 2013 11:36

Assembler APP.PATH
 
Iam looking for something like APP.PATH in Visual Basic.
Is any way how to find "Program/App path" in Amiga assembler ?

Thanks.

hooverphonique 17 January 2013 11:55

depending on what you're trying to do, you can either use the automatic "PROGDIR:" assignment or read the "pr_HomeDir" field of your process (which you get by doing "FindTask(NULL)".

None of the above is assembler-specific, btw..

obiwanken 17 January 2013 12:28

Simple steps:

1. Program starts from HDD.
2. Allocate some Chip mem.
3. Load GFX,Music,Any data from Home directory (HDD) to allocated memory.

Months ago I found sample program on some forum (French, I think), but I dont know where and still looking for it.

hooverphonique 17 January 2013 13:16

well, no need to look any further, just do what I described :-)

obiwanken 17 January 2013 14:58

1 Attachment(s)
"PROGDIR:" sounds good but when I used it Iam requested to insert volume "PROGDIR" :confused

I dont know how to use findtask() and pr_HomeDir , but i found this:

Attachment 33915

Just I want simpliest way.

hooverphonique 17 January 2013 20:10

hmm.. are you using kickstart 1.2 or 1.3? my suggestions only work on 2.0+..

also, if you aren't able to figure out how to call FindTask(), I'm afraid you will never succeed implementing all that stuff above that you call "simple steps"..


All times are GMT +2. The time now is 02:36.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.

Page generated in 0.04213 seconds with 11 queries