Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: coasternuts on July 27, 2005, 09:01:07 pm

Title: Configuring Daphne for front end?
Post by: coasternuts on July 27, 2005, 09:01:07 pm
I posted the same question here,

https://www.daphne-emu.com/phpBB2/viewtopic.php?t=1820

but since some FE dev's are here, I thought I'd ask.

Basically when I run daphne from another location other than the directory it was installed in, I get errors for missing pics and .dlls.  Is there some config. options that I can set to get daphne to load from another location?

Thanks.
Title: Re: Configuring Daphne for front end?
Post by: whatisk on July 27, 2005, 09:31:52 pm
Which frontend are you going to use?
I have managed to get it working ok in Mamewah.
Title: Re: Configuring Daphne for front end?
Post by: coasternuts on July 27, 2005, 11:52:11 pm
Could you explain the config process for that?  I'm not using an existing FE, I'm writing my own.  But the setup should be similar.

The problem I think is that daphne.exe is looking for pics, .dlls, etc. needed for the program in the current working directory.  I need to override this to an absolute or relative path from where I'm running.

For example, 

C:\Games\daphne\daphne.exe lair .... -framefile C:\Games\daphne\mpeg2\..

When you do this, that's when daphne.exe starts complaining.
Title: Re: Configuring Daphne for front end?
Post by: youki on July 28, 2005, 07:44:29 am
If you are developping you own Front End. You just have to change the Current Directory of your application to the one of the emulator (by code). It should solve your problem.

What programming language do you use?

Title: Re: Configuring Daphne for front end?
Post by: coasternuts on July 28, 2005, 09:47:53 am
Hmmm.  Your ideas intrigue me.  Could you explain further?

I am using Java2 1.5.   
Title: Re: Configuring Daphne for front end?
Post by: coasternuts on July 28, 2005, 09:49:37 am
ps. On WindowsXP.  It doesn't have to be Java specific.  I will accept Windows specifc answers. 
Title: Re: Configuring Daphne for front end?
Post by: youki on July 28, 2005, 10:53:42 am
hum Java..  that is a little more specific , because this language doesn't have really the notion of current Directory.

but read that , it could help you :

http://www.devx.com/tips/Tip/13804

Another thing you can do to solve your problem , could be to use a .BAT file like :

C:
cd Games
cd daphne
daphne.exe lair .... -framefile mpeg2\..

You save it somewhere as, Daphne.BAT

and in your config file , you reference it instead of the emulator like :
(if you save it in C:\games\daphne)

C:\games\daphne\daphne.bat

I hope it helps you.