diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-09 04:18:01 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-09 04:18:01 +0000 |
| commit | 302832eabec2f062591162840da9dbe9a127f780 (patch) | |
| tree | 15240364e27ef5493e945b16bc1359c5c4d1fe53 | |
| parent | c912deb4e76adb823b1bb5355b1171eb1241b42b (diff) | |
| download | pcsxr-302832eabec2f062591162840da9dbe9a127f780.tar.gz | |
Include file missing from last commit.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85928 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | macosx/OSXPlugLocalization.h | 22 | ||||
| -rw-r--r-- | macosx/Pcsxr.xcodeproj/project.pbxproj | 6 |
2 files changed, 26 insertions, 2 deletions
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 diff --git a/macosx/Pcsxr.xcodeproj/project.pbxproj b/macosx/Pcsxr.xcodeproj/project.pbxproj index b5118c10..0db6abeb 100644 --- a/macosx/Pcsxr.xcodeproj/project.pbxproj +++ b/macosx/Pcsxr.xcodeproj/project.pbxproj @@ -702,6 +702,7 @@ 551A777417869E830052D185 /* dfnet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = dfnet.h; sourceTree = "<group>"; }; 551A777817869E830052D185 /* unix.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = unix.c; sourceTree = "<group>"; }; 551A77C01786A2890052D185 /* libTinySDL.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libTinySDL.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; + 5539965D178BB1B100859644 /* OSXPlugLocalization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OSXPlugLocalization.h; sourceTree = "<group>"; }; 5550D2711683C923006C56B5 /* RecentItemsMenu.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RecentItemsMenu.h; sourceTree = "<group>"; }; 5550D2721683C923006C56B5 /* RecentItemsMenu.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RecentItemsMenu.m; sourceTree = "<group>"; usesTabs = 1; }; 55858D2817864D140068B8FC /* Pcsxr.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Pcsxr.xcconfig; sourceTree = "<group>"; }; @@ -1005,6 +1006,7 @@ 7161C2970FDED75300225F97 /* ExtendedKeys.h */, 02717969167884DF004AED62 /* hotkeys.h */, 02717967167884C9004AED62 /* hotkeys.m */, + 5539965D178BB1B100859644 /* OSXPlugLocalization.h */, ); name = MacOSX; sourceTree = "<group>"; @@ -1121,9 +1123,9 @@ 551A74B017868BE90052D185 /* Bladesio1 */ = { isa = PBXGroup; children = ( - 551A75B917868C200052D185 /* Resources */, - 551A74BD17868BEA0052D185 /* macsrc */, 551A75BA17868C400052D185 /* src */, + 551A74BD17868BEA0052D185 /* macsrc */, + 551A75B917868C200052D185 /* Resources */, ); path = Bladesio1; sourceTree = "<group>"; |
