18 December 2014, 10:37 | #1 |
Beyond Mutton
Join Date: Mar 2011
Location: North West, UK
Age: 52
Posts: 347
|
What's involved getting my game launching from WB icon?
I'm almost ready to release my game and would like to have it launch from an icon. At the moment I get the execute a file dialogue when launching from WB.
Thanks |
18 December 2014, 10:57 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,005
|
Does your game have an icon (a gamename.info file)? If not, make one. If yes, remove the CLI tooltype from the icon.
Note that if your program is run from Workbench, you have to receive the startup message and reply to it when your program quits. http://eab.abime.net/showpost.php?p=671760&postcount=22 |
18 December 2014, 12:09 | #3 |
A1260T/PPC/BV/SCSI/NET
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
|
You can always go IconX script way, but proper WB startup is god to have.
|
18 December 2014, 12:39 | #4 |
Beyond Mutton
Join Date: Mar 2011
Location: North West, UK
Age: 52
Posts: 347
|
Looks great, thank you!
If I'm reading it right, does this mean the program can only run from WB and not cli. It's all a bit alien to me, I'm used to shutting the system down and never returning! |
18 December 2014, 12:43 | #5 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
|
Your startup can handle both cases. Check if there is a non-NULL pointer in pr_CLI of your current process. In this case you have been started from shell. Otherwise receive a WbMsg.
|
18 December 2014, 13:18 | #6 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,005
|
Quote:
The example has two main parts: the first part begins at label "fromcli" and the second part begins at label "okfromwb". The "fromcli" part is only executed if the program is run from a shell window and the "okfromwb" part is only executed if the program is run from Workbench. Of course you can combine both parts into one. In either case in the end you have to jump to label "closedos" in order to leave properly. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PNG Icon to Color Icon Converter? | Leandro Jardim | request.Apps | 1 | 24 May 2010 04:39 |
execute a command line before launching a config for a game | turrican3 | request.UAE Wishlist | 10 | 18 July 2009 12:22 |
what would be the steps involved in using real amiga FS on usb HDD on PC emu? | dword | New to Emulation or Amiga scene | 3 | 23 July 2008 02:37 |
Champions of Krynn game icon | oldpx | Amiga scene | 1 | 26 July 2004 12:27 |
Who's Involved? | BippyM | project.Amiga Demo DVD | 1 | 02 March 2004 01:17 |
|
|