Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
File Types for GBA Roms in MorphOS & such
« 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?
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline Fab

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

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Re: File Types for GBA Roms in MorphOS & such
« Reply #2 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!
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Re: File Types for GBA Roms in MorphOS & such
« Reply #3 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!
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs