aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2012-01-14 20:13:50 +0100
committerMax Horn2012-01-14 20:13:50 +0100
commitf57b66e9845586a8457f68b52436ecbc97f80607 (patch)
tree887dc3398baada8766234c69cea5f0442b8a6f21
parentad1c2a45f12bb5401ae5c0d73ef948dea734c467 (diff)
downloadscummvm-rg350-f57b66e9845586a8457f68b52436ecbc97f80607.tar.gz
scummvm-rg350-f57b66e9845586a8457f68b52436ecbc97f80607.tar.bz2
scummvm-rg350-f57b66e9845586a8457f68b52436ecbc97f80607.zip
MACOSX: Replace use of a 10.4 only API by one available since 10.0
-rw-r--r--gui/browser_osx.mm6
1 files changed, 1 insertions, 5 deletions
diff --git a/gui/browser_osx.mm b/gui/browser_osx.mm
index 017b31b9a8..b8aa7c50ee 100644
--- a/gui/browser_osx.mm
+++ b/gui/browser_osx.mm
@@ -62,11 +62,7 @@ int BrowserDialog::runModal() {
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
+ const char *filename = [[panel filename] UTF8String];
_choice = Common::FSNode(filename);
choiceMade = true;
}