Welcome, Guest. Please login or register.

Author Topic: File Types for GBA Roms in MorphOS & such  (Read 2120 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Fab

  • Full Member
  • ***
  • Join Date: Jun 2009
  • Posts: 217
    • Show all replies
Re: File Types for GBA Roms in MorphOS & such
« 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