[Scummvm-cvs-logs] scummvm master -> b30e8e5f531374b7f6f3200b11b9ed55cc52dd66

criezy criezy at scummvm.org
Thu Jul 10 23:56:02 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b30e8e5f53 GUI: Treat bundles as directories in the OS X file browser


Commit: b30e8e5f531374b7f6f3200b11b9ed55cc52dd66
    https://github.com/scummvm/scummvm/commit/b30e8e5f531374b7f6f3200b11b9ed55cc52dd66
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2014-07-10T22:54:50+01:00

Commit Message:
GUI: Treat bundles as directories in the OS X file browser

This allows selecting an app bundle when adding a game, which is
what is expected for the LucasArts Steam mac games.

Changed paths:
    gui/browser_osx.mm



diff --git a/gui/browser_osx.mm b/gui/browser_osx.mm
index 642718d..0e80410 100644
--- a/gui/browser_osx.mm
+++ b/gui/browser_osx.mm
@@ -127,6 +127,8 @@ int BrowserDialog::runModal() {
 	NSOpenPanel *panel = [NSOpenPanel openPanel];
 	[panel setCanChooseFiles:!_isDirBrowser];
 	[panel setCanChooseDirectories:_isDirBrowser];
+	if (_isDirBrowser)
+		[panel setTreatsFilePackagesAsDirectories:true];
 	[panel setTitle:(NSString *)_titleRef];
 	[panel setPrompt:(NSString *)_chooseRef];
 






More information about the Scummvm-git-logs mailing list