NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GameZone v
« Previous 1 2 3 4 5 6 Next »
FBA support?

 
  • 0 Vote(s) - 0 Average
FBA support?
ycavan
Offline

Junior Member

Posts: 3
Threads: 1
Joined: Oct 2008
#1
2008-10-20, 12:58 PM
I've noticed that FBA just won't run... I think it's because FBA requires just the rom name when using the commandline.

I wrote up a quick app that uses shellexecute to start fba and it runs fine normally, but GameZone won't run it either.

Is there some way to make the GameZone shell pause so we can do debugging?
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#2
2008-10-21, 12:30 AM (This post was last modified: 2008-10-21, 06:06 AM by idkpmiller.)
FBA?? would you like to enlighten me as to what this is

I can take it from there

Thanks

[EDIT] I believe you are referring to an arcade emulator called Final Burn Alpha, this will need an enchancement to use the display namer and not the actual path/filename like other emulators. I will add this to v2.9 please confirm or correct me.

Thanks
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
2008-10-21, 01:10 AM (This post was last modified: 2008-10-21, 04:55 AM by johnsonx42.)
http://fba.emuunlim.com/

edit: my bad, the original fba website seems to have been orphaned some months back. Current releases are here:

http://www.barryharris.me.uk/
ycavan
Offline

Junior Member

Posts: 3
Threads: 1
Joined: Oct 2008
#4
2008-10-21, 01:45 AM
That would be FBA. Smile

Here is some quick code to start fba.exe ( in the same directory as the app ) and strip the pathname & extension from the rom filename.

Code:
#include "stdafx.h"
#include <windows.h>

int _tmain(int argc, _TCHAR* argv[])
{
    TCHAR tdrive[255];
    TCHAR tdir[255];
    TCHAR tfile[255];
    TCHAR text[255];
    TCHAR sText[255];
    TCHAR sFba[255];

    if (argc < 2 ) {
        return 0;
    }
    _wsplitpath(
        argv[0],
        tdrive,
        tdir,
        tfile,
        text);
    
    int npos=0;
    
    for(int x=0;x<255;x++) {
        if ( tdir[x] == 0 ) {
            text[npos]=0;
            break;
        } else if ( tdir[x] == '\\' ) {
            text[npos]='\\';
            npos++;
            text[npos]='\\';
            npos++;
        } else {
            text[npos] = tdir[x];
            npos++;
        }
    }

    wsprintf(tdir,L"%s",text);

    wsprintf(sText,L"%s\\%s",
        tdrive,
        tdir);

//    MessageBox(NULL,sText,L"info",MB_OK);

    wsprintf(sFba,L"%s\\fba.exe",
        sText);

    _wsplitpath(
        argv[1],
        tdrive,
        tdir,
        tfile,
        text);

    ShellExecute(
        NULL,
        L"open",
        sFba,
        tfile,
        sText,
        SW_SHOW);

    return 0;
}
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#5
2008-10-22, 06:25 AM
not sure why you would post that code? interestingly all it should need is to copy the name that is diplayed instead of using the actual filename, a few lines including user option checking is all that is needed.
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
ycavan
Offline

Junior Member

Posts: 3
Threads: 1
Joined: Oct 2008
#6
2008-10-23, 12:41 AM
That's the code for the fba launcher that I use for front-ends. Smile

wsplitpath parses the full filename into:
Drive, Path, Filename, Extension.

argv[0] is the full filename of the launcher program, ie: c:\fba\startfba.exe
argv[1] is the full filename of the rom, ie: c:\fba\roms\aof2.zip

sFba = c:\fba\fba.exe
Path = c:\fba
rom = aof2

Just thought it'd help.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#7
2008-10-24, 12:47 AM
I have added support for using the displayname which works for FBA in v2.9 of GZ which should be out soon
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#8
2008-10-24, 03:26 AM
just curious, do you mean to say that FBA is a new supported emulator (with it's own tab like MAME, ePSXe, etc.), or simply that you've added support that will allow it to work with the XtraEmulators section?

Either way is fine of course...
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#9
2008-10-24, 04:19 AM
I have added support to Xtra Emulators which will allow FBA to work with its relatively unique requirement of having the rom name passed as just the filename without a path or an extension.

Thanks
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#10
2008-10-24, 04:13 PM
you da man!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  ePSXe 1.70 support idkpmiller 0 2,615 2008-07-24, 10:39 AM
Last Post: idkpmiller
  MP3 playlist support in GameZone idkpmiller 3 2,743 2008-05-19, 02:18 PM
Last Post: mkenyon2
  GameZone 1.0 Support Thread idkpmiller 46 18,624 2007-06-24, 05:15 AM
Last Post: idkpmiller

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode