mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
BACKENDS: Fix compilation on Mac OS X without translation support
This commit is contained in:
parent
79e08c68ac
commit
19bb69c7ed
@ -53,7 +53,11 @@ void replaceApplicationMenuItems() {
|
||||
appleMenu = [[NSMenu alloc] initWithTitle:@""];
|
||||
|
||||
// Get current encoding
|
||||
#ifdef USE_TRANSLATION
|
||||
NSStringEncoding stringEncoding = CFStringConvertEncodingToNSStringEncoding(CFStringConvertIANACharSetNameToEncoding((CFStringRef)[NSString stringWithCString:(TransMan.getCurrentCharset()).c_str() encoding:NSASCIIStringEncoding]));
|
||||
#else
|
||||
NSStringEncoding stringEncoding = NSASCIIStringEncoding;
|
||||
#endif
|
||||
|
||||
// Add "About ScummVM" menu item
|
||||
[appleMenu addItemWithTitle:[NSString stringWithCString:_("About ScummVM") encoding:stringEncoding] action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""];
|
||||
|
Loading…
x
Reference in New Issue
Block a user