pcsxr/macosx/Source/OSXPlugLocalization.h
SND\MaddTheSane_cp d6942932d6 OS X: Move source files to their own folder.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90999 e17a0e51-4ae3-4d35-97c3-1a29b211df97
2014-07-20 05:09:43 +00:00

22 lines
468 B
C

//
// OSXPlugLocalization.h
// Pcsxr
//
// Created by C.W. Betts on 7/8/13.
//
//
#ifndef Pcsxr_OSXPlugLocalization_h
#define Pcsxr_OSXPlugLocalization_h
#define PLUGLOCIMP(klass) \
char* PLUGLOC(char *toloc) \
{ \
NSBundle *mainBundle = [NSBundle bundleForClass:klass]; \
NSString *origString = @(toloc), *transString = nil; \
transString = [mainBundle localizedStringForKey:origString value:@"" table:nil]; \
return (char*)[transString UTF8String]; \
}
#endif