Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: XDelusion on June 26, 2010, 05:16:22 AM

Title: File Types for GBA Roms in MorphOS & such
Post by: XDelusion on June 26, 2010, 05:16:22 AM
Has anyone made one, or can anyone walk me by the hand through the process?

Also, might some of these emulators not be working correctly because they were written with an older version of MorphOS in mind?
Title: Re: File Types for GBA Roms in MorphOS & such
Post by: Fab on June 26, 2010, 05:55:24 AM
Quote from: XDelusion;567330
Has anyone made one, or can anyone walk me by the hand through the process?

Also, might some of these emulators not be working correctly because they were written with an older version of MorphOS in mind?

Sure, the default filetype database doesn't have it, so you need to create one yourself. The Ambient MIME type GUI doesn't allow creating them, unfortunately (only edition is possible), so a text editor will be needed. :)

This is a silly example regarding recognition rule (extension-based), but it's late, and you can have a look at proper methods (content-based) in mossys:ambient/recognition.db.

Anyway, create a file "x-gba-rom" in sys:prefs/ambient/filetypes/application/ (create application/ if you don't already have it (it's normally created by ambient when editing an application/#? filetype action from GUI)) with the following content:

Code: [Select]
AMTD
1
Type application/x-gba-rom
Name GBA Rom
Match
PatternHint #?.gba
Name #?.gba
End
Action
Name Play with VisualBoyAdvance
Event DoubleClick
Command AMIGADOS run > nil: path:to/VisualBoyAdvance-1.7.2/VisualBoyAdvance >nil: %sp
End
End        

And that's it, doubleclicking a gba rom will run visualboyadvance. Feel free to add fullscreen or any other option, of course. Also note that once the filetype is created, you can edit actions from the Ambient Mimetype editor. You can also bind a deficon by dropping your preferred icon to the icon area in the mimetype editor.

Coincidentally, I just released a build of visualboyadvance a few days ago. It was already ported, but this build seems faster for some reason, so here it is: http://fabportnawak.free.fr/misc/VisualBoyAdvance-1.7.2.lha
Title: Re: File Types for GBA Roms in MorphOS & such
Post by: XDelusion on June 26, 2010, 06:08:55 AM
Damn dude, I swear it's like half the software on MorphOS is because of you! :)

Thank for the help, I'll tinker with it here in a bit!
Title: Re: File Types for GBA Roms in MorphOS & such
Post by: XDelusion on June 26, 2010, 09:52:38 AM
What does ">nil: %sp" do?

If I remove it and adjust the Emulator path it works. I pointed it to the configuration file and have that set up, though I've two problems.

How do I keep the Sceen size while putting it in Super Eagle mode or what have you?

When ever I changed it to another mode the screen shrinks.

Also is there a way to stretch the screen so it displays proper in full screen mode?

Lastly, how do I get it to use my USB joystick?

Thank you much!