From b05c91bb3b900edee49546451a0eecf54988a3b7 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 4 Jul 2013 21:55:52 +0000 Subject: This should get the bladesio plug-in building on OS X. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85824 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- .../Bladesio1/Bladesio1.xcodeproj/project.pbxproj | 424 +++++++++++ .../English.lproj/Bladesio1PluginConfig.xib | 800 +++++++++++++++++++++ macosx/plugins/Bladesio1/English.lproj/Credits.rtf | 13 + .../Bladesio1/English.lproj/InfoPlist.strings | Bin 0 -> 500 bytes .../Bladesio1/English.lproj/Localizable.strings | 9 + macosx/plugins/Bladesio1/Info.plist | 24 + macosx/plugins/Bladesio1/macsrc/ARCBridge.h | 36 + .../Bladesio1/macsrc/PluginConfigController.h | 23 + .../Bladesio1/macsrc/PluginConfigController.m | 204 ++++++ macosx/plugins/Bladesio1/macsrc/cfg.c | 50 ++ macosx/plugins/Bladesio1/version.plist | 16 + 11 files changed, 1599 insertions(+) create mode 100644 macosx/plugins/Bladesio1/Bladesio1.xcodeproj/project.pbxproj create mode 100644 macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib create mode 100644 macosx/plugins/Bladesio1/English.lproj/Credits.rtf create mode 100755 macosx/plugins/Bladesio1/English.lproj/InfoPlist.strings create mode 100644 macosx/plugins/Bladesio1/English.lproj/Localizable.strings create mode 100644 macosx/plugins/Bladesio1/Info.plist create mode 100644 macosx/plugins/Bladesio1/macsrc/ARCBridge.h create mode 100755 macosx/plugins/Bladesio1/macsrc/PluginConfigController.h create mode 100755 macosx/plugins/Bladesio1/macsrc/PluginConfigController.m create mode 100755 macosx/plugins/Bladesio1/macsrc/cfg.c create mode 100644 macosx/plugins/Bladesio1/version.plist (limited to 'macosx/plugins') diff --git a/macosx/plugins/Bladesio1/Bladesio1.xcodeproj/project.pbxproj b/macosx/plugins/Bladesio1/Bladesio1.xcodeproj/project.pbxproj new file mode 100644 index 00000000..a4b46c3a --- /dev/null +++ b/macosx/plugins/Bladesio1/Bladesio1.xcodeproj/project.pbxproj @@ -0,0 +1,424 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 28586CC614651E870082B8EC /* Bladesio1PluginConfig.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28586CC414651E870082B8EC /* Bladesio1PluginConfig.xib */; }; + 2BD707180555997500CB5D9B /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BD707170555997500CB5D9B /* IOKit.framework */; }; + 552E4CBA1474737A00FB231F /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 552E4CBC1474737A00FB231F /* Localizable.strings */; }; + 55858D13178609A80068B8FC /* connection.c in Sources */ = {isa = PBXBuildFile; fileRef = 55858D0B178609A80068B8FC /* connection.c */; }; + 55858D14178609A80068B8FC /* connection.h in Headers */ = {isa = PBXBuildFile; fileRef = 55858D0C178609A80068B8FC /* connection.h */; }; + 55858D15178609A80068B8FC /* fifo.c in Sources */ = {isa = PBXBuildFile; fileRef = 55858D0D178609A80068B8FC /* fifo.c */; }; + 55858D16178609A80068B8FC /* fifo.h in Headers */ = {isa = PBXBuildFile; fileRef = 55858D0E178609A80068B8FC /* fifo.h */; }; + 55858D17178609A80068B8FC /* sio1.c in Sources */ = {isa = PBXBuildFile; fileRef = 55858D0F178609A80068B8FC /* sio1.c */; }; + 55858D18178609A80068B8FC /* sio1.h in Headers */ = {isa = PBXBuildFile; fileRef = 55858D10178609A80068B8FC /* sio1.h */; }; + 55858D19178609A80068B8FC /* typedefs.h in Headers */ = {isa = PBXBuildFile; fileRef = 55858D11178609A80068B8FC /* typedefs.h */; }; + 55858D1A178622CE0068B8FC /* cfg.c in Sources */ = {isa = PBXBuildFile; fileRef = 71F3C32511F3CD0B007B9F12 /* cfg.c */; }; + 5586006E1785137C00CB3D85 /* ARCBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 5586006D1785137C00CB3D85 /* ARCBridge.h */; }; + 71F3C32A11F3CD0B007B9F12 /* PluginConfigController.h in Headers */ = {isa = PBXBuildFile; fileRef = 71F3C32611F3CD0B007B9F12 /* PluginConfigController.h */; }; + 71F3C32B11F3CD0B007B9F12 /* PluginConfigController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71F3C32711F3CD0B007B9F12 /* PluginConfigController.m */; }; + 71F3C38611F3CFED007B9F12 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71F3C38511F3CFED007B9F12 /* AppKit.framework */; }; + 71F3C38811F3CFF7007B9F12 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71F3C38711F3CFF7007B9F12 /* Carbon.framework */; }; + 71F3C47A11F3D108007B9F12 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 71F3C47811F3D108007B9F12 /* Credits.rtf */; }; + 8D576314048677EA00EA77CD /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */; }; + 8D5B49A804867FD3000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8D5B49A704867FD3000E48DA /* InfoPlist.strings */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; + 0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; + 28586CC514651E870082B8EC /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/Bladesio1PluginConfig.xib; sourceTree = ""; }; + 2BD707170555997500CB5D9B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; + 552E4CBB1474737A00FB231F /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = ""; }; + 55858D0A178609A80068B8FC /* cfg.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cfg.c; sourceTree = ""; }; + 55858D0B178609A80068B8FC /* connection.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = connection.c; sourceTree = ""; }; + 55858D0C178609A80068B8FC /* connection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = connection.h; sourceTree = ""; }; + 55858D0D178609A80068B8FC /* fifo.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fifo.c; sourceTree = ""; }; + 55858D0E178609A80068B8FC /* fifo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fifo.h; sourceTree = ""; }; + 55858D0F178609A80068B8FC /* sio1.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sio1.c; sourceTree = ""; }; + 55858D10178609A80068B8FC /* sio1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sio1.h; sourceTree = ""; }; + 55858D11178609A80068B8FC /* typedefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = typedefs.h; sourceTree = ""; }; + 5586006D1785137C00CB3D85 /* ARCBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ARCBridge.h; sourceTree = ""; }; + 71F3C32511F3CD0B007B9F12 /* cfg.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; path = cfg.c; sourceTree = ""; }; + 71F3C32611F3CD0B007B9F12 /* PluginConfigController.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; path = PluginConfigController.h; sourceTree = ""; }; + 71F3C32711F3CD0B007B9F12 /* PluginConfigController.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; path = PluginConfigController.m; sourceTree = ""; }; + 71F3C38511F3CFED007B9F12 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; + 71F3C38711F3CFF7007B9F12 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = ""; }; + 71F3C47911F3D108007B9F12 /* English */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = English; path = English.lproj/Credits.rtf; sourceTree = ""; }; + 8D576316048677EA00EA77CD /* Bladesio1.psxplugin */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Bladesio1.psxplugin; sourceTree = BUILT_PRODUCTS_DIR; }; + 8D576317048677EA00EA77CD /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8D576313048677EA00EA77CD /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 8D576314048677EA00EA77CD /* CoreFoundation.framework in Frameworks */, + 2BD707180555997500CB5D9B /* IOKit.framework in Frameworks */, + 71F3C38611F3CFED007B9F12 /* AppKit.framework in Frameworks */, + 71F3C38811F3CFF7007B9F12 /* Carbon.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 089C166AFE841209C02AAC07 /* CdrDevMac */ = { + isa = PBXGroup; + children = ( + 08FB77AFFE84173DC02AAC07 /* Source Files */, + 089C167CFE841241C02AAC07 /* Resources */, + 089C1671FE841209C02AAC07 /* External Frameworks and Libraries */, + 19C28FB6FE9D52B211CA2CBB /* Products */, + ); + name = CdrDevMac; + sourceTree = ""; + }; + 089C1671FE841209C02AAC07 /* External Frameworks and Libraries */ = { + isa = PBXGroup; + children = ( + 71F3C38511F3CFED007B9F12 /* AppKit.framework */, + 71F3C38711F3CFF7007B9F12 /* Carbon.framework */, + 0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */, + 2BD707170555997500CB5D9B /* IOKit.framework */, + ); + name = "External Frameworks and Libraries"; + sourceTree = ""; + }; + 089C167CFE841241C02AAC07 /* Resources */ = { + isa = PBXGroup; + children = ( + 28586CC414651E870082B8EC /* Bladesio1PluginConfig.xib */, + 71F3C47811F3D108007B9F12 /* Credits.rtf */, + 8D576317048677EA00EA77CD /* Info.plist */, + 8D5B49A704867FD3000E48DA /* InfoPlist.strings */, + 552E4CBC1474737A00FB231F /* Localizable.strings */, + ); + name = Resources; + sourceTree = ""; + }; + 08FB77AFFE84173DC02AAC07 /* Source Files */ = { + isa = PBXGroup; + children = ( + 71F3C32111F3CCEF007B9F12 /* macsrc */, + 71F3C30911F3CC22007B9F12 /* src */, + ); + name = "Source Files"; + sourceTree = ""; + }; + 19C28FB6FE9D52B211CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 8D576316048677EA00EA77CD /* Bladesio1.psxplugin */, + ); + name = Products; + sourceTree = ""; + }; + 71F3C30911F3CC22007B9F12 /* src */ = { + isa = PBXGroup; + children = ( + 55858D0A178609A80068B8FC /* cfg.c */, + 55858D0B178609A80068B8FC /* connection.c */, + 55858D0C178609A80068B8FC /* connection.h */, + 55858D0D178609A80068B8FC /* fifo.c */, + 55858D0E178609A80068B8FC /* fifo.h */, + 55858D0F178609A80068B8FC /* sio1.c */, + 55858D10178609A80068B8FC /* sio1.h */, + 55858D11178609A80068B8FC /* typedefs.h */, + ); + name = src; + path = ../../../plugins/bladesio1; + sourceTree = ""; + }; + 71F3C32111F3CCEF007B9F12 /* macsrc */ = { + isa = PBXGroup; + children = ( + 5586006D1785137C00CB3D85 /* ARCBridge.h */, + 71F3C32511F3CD0B007B9F12 /* cfg.c */, + 71F3C32611F3CD0B007B9F12 /* PluginConfigController.h */, + 71F3C32711F3CD0B007B9F12 /* PluginConfigController.m */, + ); + path = macsrc; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 8D57630E048677EA00EA77CD /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 71F3C32A11F3CD0B007B9F12 /* PluginConfigController.h in Headers */, + 5586006E1785137C00CB3D85 /* ARCBridge.h in Headers */, + 55858D14178609A80068B8FC /* connection.h in Headers */, + 55858D16178609A80068B8FC /* fifo.h in Headers */, + 55858D18178609A80068B8FC /* sio1.h in Headers */, + 55858D19178609A80068B8FC /* typedefs.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 8D57630D048677EA00EA77CD /* Bladesio1 */ = { + isa = PBXNativeTarget; + buildConfigurationList = 710735990FDEED75004AD098 /* Build configuration list for PBXNativeTarget "Bladesio1" */; + buildPhases = ( + 8D57630E048677EA00EA77CD /* Headers */, + 8D57630F048677EA00EA77CD /* Resources */, + 8D576311048677EA00EA77CD /* Sources */, + 8D576313048677EA00EA77CD /* Frameworks */, + 8D576315048677EA00EA77CD /* Rez */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Bladesio1; + productInstallPath = "$(HOME)/Library/Bundles"; + productName = CdrDevMac; + productReference = 8D576316048677EA00EA77CD /* Bladesio1.psxplugin */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 089C1669FE841209C02AAC07 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0460; + }; + buildConfigurationList = 7107359E0FDEED75004AD098 /* Build configuration list for PBXProject "Bladesio1" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + ); + mainGroup = 089C166AFE841209C02AAC07 /* CdrDevMac */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8D57630D048677EA00EA77CD /* Bladesio1 */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8D57630F048677EA00EA77CD /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8D5B49A804867FD3000E48DA /* InfoPlist.strings in Resources */, + 71F3C47A11F3D108007B9F12 /* Credits.rtf in Resources */, + 28586CC614651E870082B8EC /* Bladesio1PluginConfig.xib in Resources */, + 552E4CBA1474737A00FB231F /* Localizable.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXRezBuildPhase section */ + 8D576315048677EA00EA77CD /* Rez */ = { + isa = PBXRezBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXRezBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8D576311048677EA00EA77CD /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 71F3C32B11F3CD0B007B9F12 /* PluginConfigController.m in Sources */, + 55858D13178609A80068B8FC /* connection.c in Sources */, + 55858D15178609A80068B8FC /* fifo.c in Sources */, + 55858D17178609A80068B8FC /* sio1.c in Sources */, + 55858D1A178622CE0068B8FC /* cfg.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 28586CC414651E870082B8EC /* Bladesio1PluginConfig.xib */ = { + isa = PBXVariantGroup; + children = ( + 28586CC514651E870082B8EC /* English */, + ); + name = Bladesio1PluginConfig.xib; + sourceTree = ""; + }; + 552E4CBC1474737A00FB231F /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + 552E4CBB1474737A00FB231F /* English */, + ); + name = Localizable.strings; + sourceTree = ""; + }; + 71F3C47811F3D108007B9F12 /* Credits.rtf */ = { + isa = PBXVariantGroup; + children = ( + 71F3C47911F3D108007B9F12 /* English */, + ); + name = Credits.rtf; + sourceTree = ""; + }; + 8D5B49A704867FD3000E48DA /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 089C167EFE841241C02AAC07 /* English */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 7107359A0FDEED75004AD098 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CLANG_ENABLE_OBJC_ARC[arch=x86_64]" = YES; + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "PCSXRPLUG=Bladesio1", + "$(inherited)", + ); + GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; + GCC_WARN_UNKNOWN_PRAGMAS = NO; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(USER_LIBRARY_DIR)/Playstation Emulator Plugins"; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + SECTORDER_FLAGS = ""; + WRAPPER_EXTENSION = psxplugin; + }; + name = Debug; + }; + 7107359B0FDEED75004AD098 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CLANG_ENABLE_OBJC_ARC[arch=x86_64]" = YES; + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = YES; + GCC_DYNAMIC_NO_PIC = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_OPTIMIZATION_LEVEL = s; + GCC_PREPROCESSOR_DEFINITIONS = ( + "PCSXRPLUG=DFCdrom", + "$(inherited)", + ); + GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; + GCC_WARN_UNKNOWN_PRAGMAS = NO; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(USER_LIBRARY_DIR)/Playstation Emulator Plugins"; + OTHER_LDFLAGS = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + SECTORDER_FLAGS = ""; + WRAPPER_EXTENSION = psxplugin; + }; + name = Release; + }; + 7107359F0FDEED75004AD098 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEBUG_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "_MACOSX=1", + "$(DEBUG_PREPROCESSOR_DEFINITIONS)", + ); + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = ( + ../../../libpcsxcore, + ../.., + ../../../plugins/dfcdrom, + ); + MACOSX_DEPLOYMENT_TARGET = 10.6; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + STRIP_INSTALLED_PRODUCT = NO; + VALID_ARCHS = "i386 x86_64"; + }; + name = Debug; + }; + 710735A00FDEED75004AD098 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEBUG_PREPROCESSOR_DEFINITIONS = ""; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_PREPROCESSOR_DEFINITIONS = ( + "_MACOSX=1", + "$(DEBUG_PREPROCESSOR_DEFINITIONS)", + ); + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = ( + ../../../libpcsxcore, + ../.., + ../../../plugins/dfcdrom, + ); + MACOSX_DEPLOYMENT_TARGET = 10.6; + SDKROOT = macosx; + VALID_ARCHS = "i386 x86_64"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 710735990FDEED75004AD098 /* Build configuration list for PBXNativeTarget "Bladesio1" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7107359A0FDEED75004AD098 /* Debug */, + 7107359B0FDEED75004AD098 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7107359E0FDEED75004AD098 /* Build configuration list for PBXProject "Bladesio1" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7107359F0FDEED75004AD098 /* Debug */, + 710735A00FDEED75004AD098 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 089C1669FE841209C02AAC07 /* Project object */; +} diff --git a/macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib b/macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib new file mode 100644 index 00000000..b77e5264 --- /dev/null +++ b/macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib @@ -0,0 +1,800 @@ + + + + 1060 + 12E55 + 3084 + 1187.39 + 626.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 3084 + + + NSBox + NSButton + NSButtonCell + NSCustomObject + NSMenu + NSMenuItem + NSNumberFormatter + NSPopUpButton + NSPopUpButtonCell + NSTextField + NSTextFieldCell + NSView + NSWindowTemplate + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + Bladesio1PluginConfigController + + + FirstResponder + + + NSApplication + + + 1 + 2 + {{131, 362}, {255, 197}} + 1886912512 + BladeSIO1 Configuration + NSWindow + + View + + + {283.34100000000001, 107} + + + 256 + + + + 256 + {{14, 13}, {82, 32}} + + + YES + + 67108864 + 134217728 + Cancel + + LucidaGrande + 13 + 1044 + + + -2038284288 + 1 + + + Gw + 200 + 25 + + NO + + + + 256 + {{176, 13}, {65, 32}} + + YES + + 67108864 + 134217728 + OK + + + -2038284288 + 1 + + + DQ + 200 + 25 + + NO + + + + 12 + + + + 274 + + + + 268 + {{15, 73}, {85, 17}} + + + _NS:1535 + YES + + 68157504 + 272630784 + IP Address: + + _NS:1535 + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + 3 + MAA + + + + NO + + + + 268 + {{15, 42}, {85, 17}} + + + _NS:1535 + YES + + 68157504 + 272630784 + Player: + + _NS:1535 + + + + + NO + + + + 268 + {{15, 14}, {85, 17}} + + + _NS:1535 + YES + + 68157504 + 272630784 + Port + + _NS:1535 + + + + + NO + + + + 268 + {{105, 71}, {96, 22}} + + + _NS:9 + YES + + -1804599231 + 272630784 + + + _NS:9 + + YES + + 6 + System + textBackgroundColor + + 3 + MQA + + + + 6 + System + textColor + + + + NO + + + + 268 + {{105, 12}, {96, 22}} + + + _NS:9 + YES + + -1804599231 + -1874852864 + + + + + + + + + + + + -∞ + + +∞ + + # + # + + + + + + + + NaN + + + + + + 3 + YES + YES + YES + + . + , + NO + NO + YES + + _NS:9 + + YES + + + + NO + + + + 268 + {{103, 39}, {101, 26}} + + + _NS:9 + YES + + -2076180416 + 2048 + + _NS:9 + + 109199360 + 129 + + + 400 + 75 + + + Disabled + + 1048576 + 2147483647 + + NSImage + NSMenuCheckmark + + + NSImage + NSMenuMixedState + + _popUpItemAction: + + + YES + + OtherViews + + + + + Master + + 1048576 + 2147483647 + + + _popUpItemAction: + + + + + Slave + + 1048576 + 2147483647 + + + _popUpItemAction: + + + + + + 1 + YES + YES + 2 + + NO + + + {{1, 1}, {219, 102}} + + + _NS:11 + + + {{17, 57}, {221, 104}} + + + _NS:9 + {0, 0} + + 67108864 + 0 + Box + + LucidaGrande + 11 + 3100 + + + + 3 + MCAwLjgwMDAwMDAxMTkAA + + + + 1 + 0 + 0 + NO + + + + 268 + {{16, 164}, {61, 18}} + + + _NS:9 + YES + + -2080374784 + 268697600 + Enabled + + LucidaGrande + 9 + 3614 + + _NS:9 + + 1211912448 + 2 + + NSImage + NSSwitch + + + NSSwitch + + + + 200 + 25 + + NO + + + {255, 197} + + + + {{0, 0}, {1920, 1080}} + {283.34100000000001, 129} + {10000000000000, 10000000000000} + YES + + + + + + + ok: + + + + 133 + + + + cancel: + + + + 134 + + + + window + + + + 141 + + + + enabledButton + + + + 196 + + + + toggleEnabled: + + + + 197 + + + + portField + + + + 215 + + + + ipAddressField + + + + 217 + + + + configBox + + + + 218 + + + + playerMenu + + + + 219 + + + + delegate + + + + 158 + + + + nextKeyView + + + + 9 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + 5 + + + + + + Window + + + 6 + + + + + + + + + + + 7 + + + + + + + + 8 + + + + + + + + 186 + + + + + 187 + + + + + -3 + + + Application + + + 193 + + + + + + + + + + + + + 194 + + + + + + + + 195 + + + + + 198 + + + + + + + + 199 + + + + + 200 + + + + + + + + 201 + + + + + 202 + + + + + + + + 203 + + + + + 204 + + + + + + + + 205 + + + + + 206 + + + + + + + + 207 + + + + + + + + 208 + + + + + + + + 209 + + + + + + + + 210 + + + + + + + + + + 211 + + + + + 212 + + + + + 213 + + + + + 220 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + 220 + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + YES + 3 + + {11, 11} + {10, 3} + {15, 15} + + + diff --git a/macosx/plugins/Bladesio1/English.lproj/Credits.rtf b/macosx/plugins/Bladesio1/English.lproj/Credits.rtf new file mode 100644 index 00000000..76fa6442 --- /dev/null +++ b/macosx/plugins/Bladesio1/English.lproj/Credits.rtf @@ -0,0 +1,13 @@ +{\rtf1\mac\ansicpg10025\cocoartf824\cocoasubrtf420 +{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural + +\f0\b\fs24 \cf0 Original coder: +\f1\b0 \ + linuzappz\ +\ + +\f0\b Macintosh Port: +\f1\b0 \ + Wei Mingzhi} \ No newline at end of file diff --git a/macosx/plugins/Bladesio1/English.lproj/InfoPlist.strings b/macosx/plugins/Bladesio1/English.lproj/InfoPlist.strings new file mode 100755 index 00000000..5f4e6dd7 Binary files /dev/null and b/macosx/plugins/Bladesio1/English.lproj/InfoPlist.strings differ diff --git a/macosx/plugins/Bladesio1/English.lproj/Localizable.strings b/macosx/plugins/Bladesio1/English.lproj/Localizable.strings new file mode 100644 index 00000000..2faf6e07 --- /dev/null +++ b/macosx/plugins/Bladesio1/English.lproj/Localizable.strings @@ -0,0 +1,9 @@ +/* + Localizable.strings + DFCdrom + + Created by C.W. Betts on 11/16/11. + Copyright 2011 __MyCompanyName__. All rights reserved. + */ + +"CD-ROM Drive Reader" = "CD-ROM Drive Reader"; diff --git a/macosx/plugins/Bladesio1/Info.plist b/macosx/plugins/Bladesio1/Info.plist new file mode 100644 index 00000000..b96b848d --- /dev/null +++ b/macosx/plugins/Bladesio1/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + net.pcsxr.Bladesio1 + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + PsxP + CFBundleSignature + CdDI + CFBundleVersion + 1.0 + NSPrincipalClass + Bladesio1PluginConfigController + + diff --git a/macosx/plugins/Bladesio1/macsrc/ARCBridge.h b/macosx/plugins/Bladesio1/macsrc/ARCBridge.h new file mode 100644 index 00000000..ea274b84 --- /dev/null +++ b/macosx/plugins/Bladesio1/macsrc/ARCBridge.h @@ -0,0 +1,36 @@ +// +// ARCBridge.h +// PPMacho +// +// Created by C.W. Betts on 12/23/12. +// +// + +#ifndef PPMacho_ARCBridge_h +#define PPMacho_ARCBridge_h + +#if __has_feature(objc_arc) + +#define SUPERDEALLOC +#define RELEASEOBJ(obj) +#define RETAINOBJ(obj) obj +#define RETAINOBJNORETURN(obj) +#define AUTORELEASEOBJ(obj) obj +#define AUTORELEASEOBJNORETURN(obj) +#define BRIDGE(toType, obj) (__bridge toType)(obj) +#define __arcweak __weak + +#else + +#define SUPERDEALLOC [super dealloc] +#define RELEASEOBJ(obj) [obj release] +#define RETAINOBJ(obj) [obj retain] +#define RETAINOBJNORETURN(obj) [obj retain] +#define AUTORELEASEOBJ(obj) [obj autorelease] +#define AUTORELEASEOBJNORETURN(obj) [obj autorelease] +#define BRIDGE(toType, obj) (toType)obj +#define __arcweak + +#endif + +#endif diff --git a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.h b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.h new file mode 100755 index 00000000..595dce02 --- /dev/null +++ b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.h @@ -0,0 +1,23 @@ +#define PluginConfigController Bladesio1PluginConfigController + +#import + +@interface Bladesio1PluginConfigController : NSWindowController +{ + IBOutlet NSButton *enabledButton; + IBOutlet NSTextField *ipAddressField; + IBOutlet NSTextField *portField; + IBOutlet NSPopUpButton *playerMenu; + IBOutlet NSBox *configBox; + + NSMutableDictionary *keyValues; +} +- (IBAction)cancel:(id)sender; +- (IBAction)ok:(id)sender; +- (IBAction)toggleEnabled:(id)sender; +- (IBAction)resetPreferences:(id)sender; + + +- (void)loadValues; + +@end diff --git a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m new file mode 100755 index 00000000..13d9ef6e --- /dev/null +++ b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2010, Wei Mingzhi . + * All Rights Reserved. + * + * Based on: Cdrom for Psemu Pro like Emulators + * By: linuzappz + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#import "PluginConfigController.h" +#include "typedefs.h" +#include "sio1.h" +#import "ARCBridge.h" + +#define APP_ID @"net.pcsxr.Bladesio1" +#define PrefsKey APP_ID @" Settings" + +static PluginConfigController *windowController = nil; + +#define kSioEnabled @"SIO Enabled" +#define kSioPort @"Port" +#define kSioPlayer @"Player" +#define kSioIPAddress @"IP address" + +void AboutDlgProc() +{ + // Get parent application instance + NSApplication *app = [NSApplication sharedApplication]; + NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; + + // Get Credits.rtf + NSString *path = [bundle pathForResource:@"Credits" ofType:@"rtf"]; + NSAttributedString *credits; + if (path) { + credits = [[NSAttributedString alloc] initWithPath: path + documentAttributes:NULL]; + AUTORELEASEOBJNORETURN(credits); + + } else { + credits = AUTORELEASEOBJ([[NSAttributedString alloc] initWithString:@""]); + } + + // Get Application Icon + NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:[bundle bundlePath]]; + NSSize size = NSMakeSize(64, 64); + [icon setSize:size]; + + [app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys: + [bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName", + icon, @"ApplicationIcon", + [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion", + [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version", + [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright", + credits, @"Credits", + nil]]; +} + +void ConfDlgProc() +{ + NSWindow *window; + + if (windowController == nil) { + windowController = [[PluginConfigController alloc] initWithWindowNibName:@"Bladesio1PluginConfig"]; + } + window = [windowController window]; + + [windowController loadValues]; + + [window center]; + [window makeKeyAndOrderFront:nil]; +} + +void ReadConfig() +{ + NSDictionary *keyValues; + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + [defaults registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys: + [NSDictionary dictionaryWithObjectsAndKeys: + @NO, kSioEnabled, + @((unsigned short)33307), kSioPort, + @"127.0.0.1", kSioIPAddress, + @(PLAYER_DISABLED), kSioPlayer, + nil], PrefsKey, nil]]; + + keyValues = [defaults dictionaryForKey:PrefsKey]; + + settings.enabled = [[keyValues objectForKey:kSioEnabled] boolValue]; + settings.port = [[keyValues objectForKey:kSioPort] unsignedShortValue]; + settings.player = [[keyValues objectForKey:kSioPlayer] intValue]; + strlcpy(settings.ip, [[keyValues objectForKey:kSioIPAddress] cStringUsingEncoding:NSASCIIStringEncoding], sizeof(settings.ip)); +} + +@implementation Bladesio1PluginConfigController + +- (IBAction)cancel:(id)sender +{ + [self close]; +} + +- (IBAction)ok:(id)sender +{ + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + + NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues]; + + + NSString *theAddress = [ipAddressField stringValue]; + { + unsigned char a, b, c, d; + if (sscanf([theAddress cStringUsingEncoding:NSASCIIStringEncoding], "%s.%s.%s.%s", &a, &b, &c, &d) != 4) { + NSBeginAlertSheet(@"Invalid IP address", nil, nil, nil, [self window], nil, NULL, NULL, NULL, @"The IP address cannot be a hostname,"); + } + } + + [writeDic setObject:(([enabledButton state] == NSOnState) ? @YES : @NO) forKey:kSioEnabled]; + [writeDic setObject:[ipAddressField stringValue] forKey:kSioIPAddress]; + [writeDic setObject:@((unsigned short)[portField intValue]) forKey:kSioPort]; + + + switch ([playerMenu indexOfSelectedItem]) { + default: + case 0: [writeDic setObject:@(PLAYER_DISABLED) forKey:kSioPlayer]; break; + case 1: [writeDic setObject:@(PLAYER_MASTER) forKey:kSioPlayer]; break; + case 2: [writeDic setObject:@(PLAYER_SLAVE) forKey:kSioPlayer]; break; + } + + // write to defaults + [defaults setObject:writeDic forKey:PrefsKey]; + [defaults synchronize]; + + // and set global values accordingly + ReadConfig(); + + [self close]; +} + +- (IBAction)toggleEnabled:(id)sender +{ + BOOL isEnabled = [enabledButton state] == NSOnState ? YES : NO; + + for (NSView *subView in [configBox subviews]) { + if ([subView isKindOfClass:[NSTextField class]] && ![(NSTextField*)subView isEditable]) { + [(NSTextField*)subView setTextColor:isEnabled ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]]; + } else { + [(NSControl*)subView setEnabled:isEnabled]; + } + } +} + +- (IBAction)resetPreferences:(id)sender +{ + [[NSUserDefaults standardUserDefaults] removeObjectForKey:PrefsKey]; + [self loadValues]; +} + +- (void)loadValues +{ + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + + ReadConfig(); + + // load from preferences + RELEASEOBJ(keyValues); + keyValues = [[defaults dictionaryForKey:PrefsKey] mutableCopy]; + + [enabledButton setState: [[keyValues objectForKey:kSioEnabled] boolValue] ? NSOnState : NSOffState]; + [ipAddressField setTitleWithMnemonic:[keyValues objectForKey:kSioIPAddress]]; + [portField setValue:[keyValues objectForKey:kSioPort]]; + + switch ([[keyValues objectForKey:kSioPlayer] intValue]) { + default: + case PLAYER_DISABLED: [playerMenu selectItemAtIndex:0]; break; + case PLAYER_MASTER: [playerMenu selectItemAtIndex:1]; break; + case PLAYER_SLAVE: [playerMenu selectItemAtIndex:2]; break; + } +} + +- (void)awakeFromNib +{ +} + +@end + +char* PLUGLOC(char *toloc) +{ + NSBundle *mainBundle = [NSBundle bundleForClass:[PluginConfigController class]]; + NSString *origString = nil, *transString = nil; + origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding]; + transString = [mainBundle localizedStringForKey:origString value:nil table:nil]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; +} + diff --git a/macosx/plugins/Bladesio1/macsrc/cfg.c b/macosx/plugins/Bladesio1/macsrc/cfg.c new file mode 100755 index 00000000..65fd5111 --- /dev/null +++ b/macosx/plugins/Bladesio1/macsrc/cfg.c @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2010, Wei Mingzhi . + * All Rights Reserved. + * + * Based on: Cdrom for Psemu Pro like Emulators + * By: linuzappz + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include +#include +#include "typedefs.h" +#include "sio1.h" + +void AboutDlgProc(); +void ConfDlgProc(); +void ReadConfig(); + +Settings settings; + +void settingsRead() { + settings.player = PLAYER_DISABLED; + strcpy(settings.ip, "127.0.0.1"); + settings.port = 33307; + + ReadConfig(); +} + +#if 0 +extern long SIO1configure() { + ConfDlgProc(); + return 0; +} + +extern void SIO1about() { + AboutDlgProc(); +} +#endif diff --git a/macosx/plugins/Bladesio1/version.plist b/macosx/plugins/Bladesio1/version.plist new file mode 100644 index 00000000..a9c51a62 --- /dev/null +++ b/macosx/plugins/Bladesio1/version.plist @@ -0,0 +1,16 @@ + + + + + BuildVersion + 38 + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + ProjectName + DFCdrom + SourceVersion + 2350000 + + -- cgit v1.2.3