English Amiga Board


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

 
 
Thread Tools
Old 06 March 2014, 09:11   #1
MagerValp
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:
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, 15:51   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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 :-/
FrodeSolheim is offline  
Old 07 March 2014, 10:04   #3
MagerValp
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?
MagerValp is offline  
Old 13 June 2014, 21:29   #4
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
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.
FrodeSolheim is offline  
Old 14 June 2014, 09:46   #5
MagerValp
Registered User
 
Join Date: Aug 2008
Location: Göteborg / Sweden
Posts: 237
Nice, thanks!
MagerValp is offline  
Old 14 June 2014, 10:53   #6
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
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
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

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 11:49.

Top

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