English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 18 December 2014, 10:37   #1
jimmy2x2x
Beyond Mutton
 
jimmy2x2x's Avatar
 
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
jimmy2x2x is offline  
Old 18 December 2014, 10:57   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
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
thomas is offline  
Old 18 December 2014, 12:09   #3
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
You can always go IconX script way, but proper WB startup is god to have.
Michael is offline  
Old 18 December 2014, 12:39   #4
jimmy2x2x
Beyond Mutton
 
jimmy2x2x's Avatar
 
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!
jimmy2x2x is offline  
Old 18 December 2014, 12:43   #5
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by jimmy2x2x View Post
If I'm reading it right, does this mean the program can only run from WB and not cli.
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.
phx is offline  
Old 18 December 2014, 13:18   #6
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by jimmy2x2x View Post
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!

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.
thomas is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:09.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10588 seconds with 15 queries