From 302832eabec2f062591162840da9dbe9a127f780 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 9 Jul 2013 04:18:01 +0000 Subject: Include file missing from last commit. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85928 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/OSXPlugLocalization.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 macosx/OSXPlugLocalization.h (limited to 'macosx/OSXPlugLocalization.h') diff --git a/macosx/OSXPlugLocalization.h b/macosx/OSXPlugLocalization.h new file mode 100644 index 00000000..59a8dea3 --- /dev/null +++ b/macosx/OSXPlugLocalization.h @@ -0,0 +1,22 @@ +// +// 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 = nil, *transString = nil; \ +origString = @(toloc); \ +transString = [mainBundle localizedStringForKey:origString value:nil table:nil]; \ +return (char*)[transString UTF8String]; \ +} + +#endif -- cgit v1.2.3