[Scummvm-cvs-logs] SF.net SVN: scummvm:[46592] scummvm/trunk/gui/browser_osx.mm
vinterstum at users.sourceforge.net
vinterstum at users.sourceforge.net
Sat Dec 26 17:00:41 CET 2009
Revision: 46592
http://scummvm.svn.sourceforge.net/scummvm/?rev=46592&view=rev
Author: vinterstum
Date: 2009-12-26 16:00:41 +0000 (Sat, 26 Dec 2009)
Log Message:
-----------
Buildbot compile fix for os x cross compile
Modified Paths:
--------------
scummvm/trunk/gui/browser_osx.mm
Modified: scummvm/trunk/gui/browser_osx.mm
===================================================================
--- scummvm/trunk/gui/browser_osx.mm 2009-12-26 15:47:57 UTC (rev 46591)
+++ scummvm/trunk/gui/browser_osx.mm 2009-12-26 16:00:41 UTC (rev 46592)
@@ -31,6 +31,7 @@
#include "common/algorithm.h"
#import <AppKit/NSOpenPanel.h>
+#import <Foundation/NSString.h>
namespace GUI {
@@ -62,7 +63,11 @@
NSOpenPanel * panel = [NSOpenPanel openPanel];
[panel setCanChooseDirectories:YES];
if ([panel runModalForTypes:nil] == NSOKButton) {
+#ifdef __POWERPC__
const char *filename = [[panel filename] cString];
+#else
+ const char *filename = [[panel filename] cStringUsingEncoding:NSUTF8StringEncoding];
+#endif
_choice = Common::FSNode(filename);
choiceMade = true;
}
@@ -78,4 +83,4 @@
return choiceMade;
}
-}
\ No newline at end of file
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list