06 March 2014, 09:11 | #1 | ||
Registered User
Join Date: Aug 2008
Location: Göteborg / Sweden
Posts: 237
|
Double clicking .fs-uae files on OS X
Hi,
when I double click on my .fs-uae config files (associated to FS-UAE.app) with 2.4.0 it launches but says no configuration file found: Quote:
Quote:
|
||
06 March 2014, 15:51 | #2 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Hi, this problem occurs on recent OS X versions (the application does not get the file argument through argv like it used to. I haven't got a solution on this one yet :-/
|
07 March 2014, 10:04 | #3 |
Registered User
Join Date: Aug 2008
Location: Göteborg / Sweden
Posts: 237
|
I did a little digging, and in SDL 1.2 double clicked files were being added to gArgv, while in SDL 2.0 the application is sent an SDL_DROPFILE event at startup instead. The FS-UAE startup code is a little hard to follow, but it looks like events aren't processed until the emulation has already started?
|
13 June 2014, 21:29 | #4 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
MagerValp thanks, your research is spot on. FS-UAE does in fact get an SDL_DROPFILE event on startup if the .app bundle is launched with a file
The startup code is a bit hard to follow, that's true. But for config file loading to work, the event must be processed very early, much earlier that the current SDL initialization. The solution is to initialize SDL even earlier on OS X, and process all pending events in a special event look (really only looking for an SDL_DROPFILE event). -And it works The fix will be included in FS-UAE 2.5.6dev. |
14 June 2014, 09:46 | #5 |
Registered User
Join Date: Aug 2008
Location: Göteborg / Sweden
Posts: 237
|
Nice, thanks!
|
14 June 2014, 10:53 | #6 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Or rather, thank you, since I didn't know about the SDL_DROPFILE change
It should work in this build: http://fs-uae.net/devel/2.5.5dev3/ |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Double PAL / Double NTSC, oficially supported by WHDLoad... | Shoonay | project.WHDLoad | 3 | 15 May 2021 19:42 |
lha files read by UAE? | dionisis | New to Emulation or Amiga scene | 3 | 09 April 2007 11:55 |
Guru/freeze when double clicking icons | alewis | support.Hardware | 3 | 09 August 2006 23:44 |
UAE files! Where is the database providing these WinUAE setup files? | taichi_tarot | Retrogaming General Discussion | 3 | 02 June 2006 00:36 |
Double clicking on an .adf file | Unregistered | support.WinUAE | 6 | 30 September 2002 06:12 |
|
|