25 August 2008, 22:31 | #1 |
Dazed and Confused
Join Date: Dec 2001
Location: portsmouth/uk
Posts: 242
|
Icon launch wont work
This is an old problem that I'm still stumped by. I have a little program that I want to be able to start from an icon, but it's not working properly.
The thing will run from devpac when it is assembled. It will run from the shell. It will launch from the icon, if the files are put into the RAM disk. It won't launch from the icon when it's in a directory. Does anyone have an idea why? I have attached the files, if anyone cares to look at it. Last edited by Jherek Carnelia; 09 April 2011 at 22:22. |
26 August 2008, 03:06 | #2 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
It simply doesn't find the picture. If you run the program from it's icon, the current directory isn't changed to the program directory. You can also try this (assuming the picture doesn't reside in sys):
Code:
cd sys: <path to your program>/maincode Edit: Alternatively you simply could use this Code:
file2 DC.B "PROGDIR:venus.lores0.raw",0 Last edited by thor; 26 August 2008 at 06:36. |
26 August 2008, 12:11 | #3 |
Dazed and Confused
Join Date: Dec 2001
Location: portsmouth/uk
Posts: 242
|
What puzzles me is why it works from the icon when it's in the RAM disk; what's the difference in the way programs are launched?
|
26 August 2008, 12:23 | #4 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
That's probably because the RAM disk is set to be in your path by default. You can check this by opening a CLI and typing the command "path".
|
26 August 2008, 12:49 | #5 |
Dazed and Confused
Join Date: Dec 2001
Location: portsmouth/uk
Posts: 242
|
Yes Leffmann you're right, the RAM disk is a default path.
Guess I'll just have to figure out how to use the GetProgramDir/NameFromLock/SetCurrentDirName. |
26 August 2008, 15:30 | #6 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
You don't have to, just use PROGDIR: which is set to your program's directory. Both options need Kick 2.0+.
|
26 August 2008, 16:23 | #7 |
Dazed and Confused
Join Date: Dec 2001
Location: portsmouth/uk
Posts: 242
|
Thor - well done that works a treat! How easy is that!!!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any reason why this wont work with my Deneb? | RMK | support.Hardware | 4 | 20 October 2011 23:28 |
how to launch games with no icon ? | phaistos | project.Killergorilla's WHD packs | 10 | 03 December 2009 18:22 |
Catweasel MK4 - wont work | chaoticjelly | support.Hardware | 32 | 02 December 2006 22:23 |
The HD just wont work! | sence2001 | support.Hardware | 4 | 17 October 2004 23:34 |
DPaint wont work | jambomiga | support.WinUAE | 15 | 30 August 2003 00:48 |
|
|