English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 06 March 2014, 10:11   #1
MagerValp
Registered User
 
Join Date: Aug 2008
Location: Göteborg / Sweden
Posts: 236
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:
current directory is /
libamiga (based on emulation core from WinUAE 2.5.1) initialized

----------------------------------------------------------------------------
libfsemu init
----------------------------------------------------------------------------

fs_emu_init
current time() is: 1394093122
localtime+timegm: 1394096722
localtime+mktime: 1394093122
time of day: 1394093122 + (289589 / 1000000)
localtime offset: 3600
calling fs_ml_init
MACOSX
fs_emu_lua_init
new lua_State at 0x4671160
initialize dialog module
load config file
- using $exe directory "/Users/xolope/Dropbox/Amiga/FS-UAE Arcade.app/Contents/FS-UAE.app/Contents/MacOS"
checking config file /Users/xolope/Dropbox/Amiga/FS-UAE Arcade.app/Contents/FS-UAE.app/Contents/MacOS/Config.fs-uae
checking config file /Users/xolope/Dropbox/Amiga/FS-UAE Arcade.app/Contents/FS-UAE.app/Contents/MacOS/../../Config.fs-uae
checking config file Config.fs-uae
checking config file fs-uae.conf
checking config file /Users/xolope/Library/Preferences/fs-uae/fs-uae.conf
- checking /Users/xolope/Library/Preferences/fs-uae/configurations-dir
- checking /Users/xolope/Library/Preferences/fs-uae/base-dir
- using base dir $DOCUMENTS/FS-UAE
- using documents directory "/Users/xolope/Documents"
- using base ($BASE / $FSUAE) directory "/Users/xolope/Documents/FS-UAE"
resolve_path /Users/xolope/Documents/FS-UAE/Configurations (absolute)
- using "Configurations" directory "/Users/xolope/Documents/FS-UAE/Configurations"
checking config file /Users/xolope/Documents/FS-UAE/Configurations/Default.fs-uae
No configuration file was foundchecking config file /Users/xolope/Documents/FS-UAE/Configurations/Host.fs-uae
locale is set to sv_SE
using data dir "/Users/xolope/Dropbox/Amiga/FS-UAE Arcade.app/Contents/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/share-dir"
using locale dir "/Users/xolope/Dropbox/Amiga/FS-UAE Arcade.app/Contents/FS-UAE.app/Contents/MacOS/../Resources/locale"
WARNING: No configuration file was found
It works if I run them from the command line with FS-UAE\ Arcade.app/Contents/FS-UAE.app/Contents/MacOS/fs-uae A4000-040.fs-uae:
Quote:
current directory is /Users/xolope/Dropbox/Amiga
libamiga (based on emulation core from WinUAE 2.5.1) initialized

----------------------------------------------------------------------------
libfsemu init
----------------------------------------------------------------------------

fs_emu_init
current time() is: 1394093374
localtime+timegm: 1394096974
localtime+mktime: 1394093374
time of day: 1394093374 + (806808 / 1000000)
localtime offset: 3600
calling fs_ml_init
MACOSX
fs_emu_lua_init
new lua_State at 0x4161020
initialize dialog module
load config file
loading config from A4000-040.fs-uae
Am I missing something?
MagerValp is offline  
Old 06 March 2014, 16:51   #2
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 37
Posts: 3,427
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 :-/
FrodeSolheim is offline  
Old 07 March 2014, 11:04   #3
MagerValp
Registered User
 
Join Date: Aug 2008
Location: Göteborg / Sweden
Posts: 236
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?
MagerValp is offline  
Old 13 June 2014, 22:29   #4
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 37
Posts: 3,427
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.
FrodeSolheim is offline  
Old 14 June 2014, 10:46   #5
MagerValp
Registered User
 
Join Date: Aug 2008
Location: Göteborg / Sweden
Posts: 236
Nice, thanks!
MagerValp is offline  
Old 14 June 2014, 11:53   #6
FrodeSolheim
FS-UAE Developer

FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 37
Posts: 3,427
Quote:
Originally Posted by MagerValp View Post
Nice, thanks!
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/
FrodeSolheim is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
lha files read by UAE? dionisis New to Emulation or Amiga scene 3 09 April 2007 12:55
Guru/freeze when double clicking icons alewis support.Hardware 3 10 August 2006 00:44
UAE files! Where is the database providing these WinUAE setup files? taichi_tarot Retrogaming General Discussion 3 02 June 2006 01:36
Double PAL / Double NTSC, oficially supported by WHDLoad... Shoonay project.WHDLoad 1 17 December 2005 18:05
Double clicking on an .adf file Unregistered support.WinUAE 6 30 September 2002 07:12

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.11357 seconds with 15 queries