diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-04 21:55:52 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-04 21:55:52 +0000 |
| commit | b05c91bb3b900edee49546451a0eecf54988a3b7 (patch) | |
| tree | f1577eb03d855fcf098a3200713026c193ced78a /macosx/plugins | |
| parent | 887a72f1270ac12e39b08391c280f076b687d95f (diff) | |
| download | pcsxr-b05c91bb3b900edee49546451a0eecf54988a3b7.tar.gz | |
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
Diffstat (limited to 'macosx/plugins')
| -rw-r--r-- | macosx/plugins/Bladesio1/Bladesio1.xcodeproj/project.pbxproj | 424 | ||||
| -rw-r--r-- | macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib | 800 | ||||
| -rw-r--r-- | macosx/plugins/Bladesio1/English.lproj/Credits.rtf | 13 | ||||
| -rwxr-xr-x | macosx/plugins/Bladesio1/English.lproj/InfoPlist.strings | bin | 0 -> 500 bytes | |||
| -rw-r--r-- | macosx/plugins/Bladesio1/English.lproj/Localizable.strings | 9 | ||||
| -rw-r--r-- | macosx/plugins/Bladesio1/Info.plist | 24 | ||||
| -rw-r--r-- | macosx/plugins/Bladesio1/macsrc/ARCBridge.h | 36 | ||||
| -rwxr-xr-x | macosx/plugins/Bladesio1/macsrc/PluginConfigController.h | 23 | ||||
| -rwxr-xr-x | macosx/plugins/Bladesio1/macsrc/PluginConfigController.m | 204 | ||||
| -rwxr-xr-x | macosx/plugins/Bladesio1/macsrc/cfg.c | 50 | ||||
| -rw-r--r-- | macosx/plugins/Bladesio1/version.plist | 16 |
11 files changed, 1599 insertions, 0 deletions
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 = "<group>"; }; + 0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; }; + 28586CC514651E870082B8EC /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/Bladesio1PluginConfig.xib; sourceTree = "<group>"; }; + 2BD707170555997500CB5D9B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = "<absolute>"; }; + 552E4CBB1474737A00FB231F /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; }; + 55858D0A178609A80068B8FC /* cfg.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cfg.c; sourceTree = "<group>"; }; + 55858D0B178609A80068B8FC /* connection.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = connection.c; sourceTree = "<group>"; }; + 55858D0C178609A80068B8FC /* connection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = connection.h; sourceTree = "<group>"; }; + 55858D0D178609A80068B8FC /* fifo.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fifo.c; sourceTree = "<group>"; }; + 55858D0E178609A80068B8FC /* fifo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fifo.h; sourceTree = "<group>"; }; + 55858D0F178609A80068B8FC /* sio1.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sio1.c; sourceTree = "<group>"; }; + 55858D10178609A80068B8FC /* sio1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sio1.h; sourceTree = "<group>"; }; + 55858D11178609A80068B8FC /* typedefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = typedefs.h; sourceTree = "<group>"; }; + 5586006D1785137C00CB3D85 /* ARCBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ARCBridge.h; sourceTree = "<group>"; }; + 71F3C32511F3CD0B007B9F12 /* cfg.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; path = cfg.c; sourceTree = "<group>"; }; + 71F3C32611F3CD0B007B9F12 /* PluginConfigController.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; path = PluginConfigController.h; sourceTree = "<group>"; }; + 71F3C32711F3CD0B007B9F12 /* PluginConfigController.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; path = PluginConfigController.m; sourceTree = "<group>"; }; + 71F3C38511F3CFED007B9F12 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; }; + 71F3C38711F3CFF7007B9F12 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; }; + 71F3C47911F3D108007B9F12 /* English */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = English; path = English.lproj/Credits.rtf; sourceTree = "<group>"; }; + 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 = "<group>"; }; +/* 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 = "<group>"; + }; + 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 = "<group>"; + }; + 089C167CFE841241C02AAC07 /* Resources */ = { + isa = PBXGroup; + children = ( + 28586CC414651E870082B8EC /* Bladesio1PluginConfig.xib */, + 71F3C47811F3D108007B9F12 /* Credits.rtf */, + 8D576317048677EA00EA77CD /* Info.plist */, + 8D5B49A704867FD3000E48DA /* InfoPlist.strings */, + 552E4CBC1474737A00FB231F /* Localizable.strings */, + ); + name = Resources; + sourceTree = "<group>"; + }; + 08FB77AFFE84173DC02AAC07 /* Source Files */ = { + isa = PBXGroup; + children = ( + 71F3C32111F3CCEF007B9F12 /* macsrc */, + 71F3C30911F3CC22007B9F12 /* src */, + ); + name = "Source Files"; + sourceTree = "<group>"; + }; + 19C28FB6FE9D52B211CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 8D576316048677EA00EA77CD /* Bladesio1.psxplugin */, + ); + name = Products; + sourceTree = "<group>"; + }; + 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 = "<group>"; + }; + 71F3C32111F3CCEF007B9F12 /* macsrc */ = { + isa = PBXGroup; + children = ( + 5586006D1785137C00CB3D85 /* ARCBridge.h */, + 71F3C32511F3CD0B007B9F12 /* cfg.c */, + 71F3C32611F3CD0B007B9F12 /* PluginConfigController.h */, + 71F3C32711F3CD0B007B9F12 /* PluginConfigController.m */, + ); + path = macsrc; + sourceTree = "<group>"; + }; +/* 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 = "<group>"; + }; + 552E4CBC1474737A00FB231F /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + 552E4CBB1474737A00FB231F /* English */, + ); + name = Localizable.strings; + sourceTree = "<group>"; + }; + 71F3C47811F3D108007B9F12 /* Credits.rtf */ = { + isa = PBXVariantGroup; + children = ( + 71F3C47911F3D108007B9F12 /* English */, + ); + name = Credits.rtf; + sourceTree = "<group>"; + }; + 8D5B49A704867FD3000E48DA /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 089C167EFE841241C02AAC07 /* English */, + ); + name = InfoPlist.strings; + sourceTree = "<group>"; + }; +/* 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1060</int> + <string key="IBDocument.SystemVersion">12E55</string> + <string key="IBDocument.InterfaceBuilderVersion">3084</string> + <string key="IBDocument.AppKitVersion">1187.39</string> + <string key="IBDocument.HIToolboxVersion">626.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="NS.object.0">3084</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>NSBox</string> + <string>NSButton</string> + <string>NSButtonCell</string> + <string>NSCustomObject</string> + <string>NSMenu</string> + <string>NSMenuItem</string> + <string>NSNumberFormatter</string> + <string>NSPopUpButton</string> + <string>NSPopUpButtonCell</string> + <string>NSTextField</string> + <string>NSTextFieldCell</string> + <string>NSView</string> + <string>NSWindowTemplate</string> + </array> + <array key="IBDocument.PluginDependencies"> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + </array> + <object class="NSMutableDictionary" key="IBDocument.Metadata"> + <string key="NS.key.0">PluginDependencyRecalculationVersion</string> + <integer value="1" key="NS.object.0"/> + </object> + <array class="NSMutableArray" key="IBDocument.RootObjects" id="1058953981"> + <object class="NSCustomObject" id="509300364"> + <string key="NSClassName">Bladesio1PluginConfigController</string> + </object> + <object class="NSCustomObject" id="141927618"> + <string key="NSClassName">FirstResponder</string> + </object> + <object class="NSCustomObject" id="44201914"> + <string key="NSClassName">NSApplication</string> + </object> + <object class="NSWindowTemplate" id="151678379"> + <int key="NSWindowStyleMask">1</int> + <int key="NSWindowBacking">2</int> + <string key="NSWindowRect">{{131, 362}, {255, 197}}</string> + <int key="NSWTFlags">1886912512</int> + <string key="NSWindowTitle">BladeSIO1 Configuration</string> + <string key="NSWindowClass">NSWindow</string> + <object class="NSMutableString" key="NSViewClass"> + <characters key="NS.bytes">View</characters> + </object> + <nil key="NSUserInterfaceItemIdentifier"/> + <string key="NSWindowContentMinSize">{283.34100000000001, 107}</string> + <object class="NSView" key="NSWindowView" id="127793487"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">256</int> + <array class="NSMutableArray" key="NSSubviews"> + <object class="NSButton" id="348063277"> + <reference key="NSNextResponder" ref="127793487"/> + <int key="NSvFlags">256</int> + <string key="NSFrame">{{14, 13}, {82, 32}}</string> + <reference key="NSSuperview" ref="127793487"/> + <reference key="NSNextKeyView" ref="45529240"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="921967453"> + <int key="NSCellFlags">67108864</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">Cancel</string> + <object class="NSFont" key="NSSupport" id="918131184"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">13</double> + <int key="NSfFlags">1044</int> + </object> + <reference key="NSControlView" ref="348063277"/> + <int key="NSButtonFlags">-2038284288</int> + <int key="NSButtonFlags2">1</int> + <reference key="NSAlternateImage" ref="918131184"/> + <string key="NSAlternateContents"/> + <string type="base64-UTF8" key="NSKeyEquivalent">Gw</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + <object class="NSButton" id="45529240"> + <reference key="NSNextResponder" ref="127793487"/> + <int key="NSvFlags">256</int> + <string key="NSFrame">{{176, 13}, {65, 32}}</string> + <reference key="NSSuperview" ref="127793487"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="764681236"> + <int key="NSCellFlags">67108864</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">OK</string> + <reference key="NSSupport" ref="918131184"/> + <reference key="NSControlView" ref="45529240"/> + <int key="NSButtonFlags">-2038284288</int> + <int key="NSButtonFlags2">1</int> + <reference key="NSAlternateImage" ref="918131184"/> + <string key="NSAlternateContents"/> + <string type="base64-UTF8" key="NSKeyEquivalent">DQ</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + <object class="NSBox" id="82652069"> + <reference key="NSNextResponder" ref="127793487"/> + <int key="NSvFlags">12</int> + <array class="NSMutableArray" key="NSSubviews"> + <object class="NSView" id="382228618"> + <reference key="NSNextResponder" ref="82652069"/> + <int key="NSvFlags">274</int> + <array class="NSMutableArray" key="NSSubviews"> + <object class="NSTextField" id="83047673"> + <reference key="NSNextResponder" ref="382228618"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{15, 73}, {85, 17}}</string> + <reference key="NSSuperview" ref="382228618"/> + <reference key="NSNextKeyView" ref="817504184"/> + <string key="NSReuseIdentifierKey">_NS:1535</string> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="546071709"> + <int key="NSCellFlags">68157504</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">IP Address:</string> + <reference key="NSSupport" ref="918131184"/> + <string key="NSCellIdentifier">_NS:1535</string> + <reference key="NSControlView" ref="83047673"/> + <object class="NSColor" key="NSBackgroundColor" id="66730619"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">controlColor</string> + <object class="NSColor" key="NSColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes> + </object> + </object> + <object class="NSColor" key="NSTextColor" id="177609207"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">controlTextColor</string> + <object class="NSColor" key="NSColor" id="503112956"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MAA</bytes> + </object> + </object> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + <object class="NSTextField" id="704624630"> + <reference key="NSNextResponder" ref="382228618"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{15, 42}, {85, 17}}</string> + <reference key="NSSuperview" ref="382228618"/> + <reference key="NSNextKeyView" ref="723933460"/> + <string key="NSReuseIdentifierKey">_NS:1535</string> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="486886176"> + <int key="NSCellFlags">68157504</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Player:</string> + <reference key="NSSupport" ref="918131184"/> + <string key="NSCellIdentifier">_NS:1535</string> + <reference key="NSControlView" ref="704624630"/> + <reference key="NSBackgroundColor" ref="66730619"/> + <reference key="NSTextColor" ref="177609207"/> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + <object class="NSTextField" id="764848078"> + <reference key="NSNextResponder" ref="382228618"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{15, 14}, {85, 17}}</string> + <reference key="NSSuperview" ref="382228618"/> + <reference key="NSNextKeyView" ref="471354310"/> + <string key="NSReuseIdentifierKey">_NS:1535</string> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="870814783"> + <int key="NSCellFlags">68157504</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Port</string> + <reference key="NSSupport" ref="918131184"/> + <string key="NSCellIdentifier">_NS:1535</string> + <reference key="NSControlView" ref="764848078"/> + <reference key="NSBackgroundColor" ref="66730619"/> + <reference key="NSTextColor" ref="177609207"/> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + <object class="NSTextField" id="817504184"> + <reference key="NSNextResponder" ref="382228618"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{105, 71}, {96, 22}}</string> + <reference key="NSSuperview" ref="382228618"/> + <reference key="NSNextKeyView" ref="704624630"/> + <string key="NSReuseIdentifierKey">_NS:9</string> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="407033884"> + <int key="NSCellFlags">-1804599231</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents"/> + <reference key="NSSupport" ref="918131184"/> + <string key="NSCellIdentifier">_NS:9</string> + <reference key="NSControlView" ref="817504184"/> + <bool key="NSDrawsBackground">YES</bool> + <object class="NSColor" key="NSBackgroundColor" id="305691350"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">textBackgroundColor</string> + <object class="NSColor" key="NSColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MQA</bytes> + </object> + </object> + <object class="NSColor" key="NSTextColor" id="37020862"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">textColor</string> + <reference key="NSColor" ref="503112956"/> + </object> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + <object class="NSTextField" id="471354310"> + <reference key="NSNextResponder" ref="382228618"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{105, 12}, {96, 22}}</string> + <reference key="NSSuperview" ref="382228618"/> + <reference key="NSNextKeyView" ref="348063277"/> + <string key="NSReuseIdentifierKey">_NS:9</string> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="843862144"> + <int key="NSCellFlags">-1804599231</int> + <int key="NSCellFlags2">-1874852864</int> + <string key="NSContents"/> + <reference key="NSSupport" ref="918131184"/> + <object class="NSNumberFormatter" key="NSFormatter" id="1041323832"> + <dictionary class="NSMutableDictionary" key="NS.attributes"> + <boolean value="YES" key="allowsFloats"/> + <integer value="1040" key="formatterBehavior"/> + <object class="NSLocale" key="locale"> + <string key="NS.identifier"/> + </object> + <integer value="65535" key="maximum"/> + <real value="0.0" key="minimum"/> + <string key="negativeInfinitySymbol">-∞</string> + <string key="nilSymbol"/> + <string key="positiveInfinitySymbol">+∞</string> + </dictionary> + <string key="NS.positiveformat">#</string> + <string key="NS.negativeformat">#</string> + <nil key="NS.positiveattrs"/> + <nil key="NS.negativeattrs"/> + <nil key="NS.zero"/> + <object class="NSAttributedString" key="NS.nil"> + <string key="NSString"/> + </object> + <object class="NSAttributedString" key="NS.nan"> + <string key="NSString">NaN</string> + <dictionary key="NSAttributes"/> + </object> + <real value="0.0" key="NS.min"/> + <integer value="65535" key="NS.max"/> + <object class="NSDecimalNumberHandler" key="NS.rounding"> + <int key="NS.roundingmode">3</int> + <bool key="NS.raise.overflow">YES</bool> + <bool key="NS.raise.underflow">YES</bool> + <bool key="NS.raise.dividebyzero">YES</bool> + </object> + <string key="NS.decimal">.</string> + <string key="NS.thousand">,</string> + <bool key="NS.hasthousands">NO</bool> + <bool key="NS.localized">NO</bool> + <bool key="NS.allowsfloats">YES</bool> + </object> + <string key="NSCellIdentifier">_NS:9</string> + <reference key="NSControlView" ref="471354310"/> + <bool key="NSDrawsBackground">YES</bool> + <reference key="NSBackgroundColor" ref="305691350"/> + <reference key="NSTextColor" ref="37020862"/> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + <object class="NSPopUpButton" id="723933460"> + <reference key="NSNextResponder" ref="382228618"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{103, 39}, {101, 26}}</string> + <reference key="NSSuperview" ref="382228618"/> + <reference key="NSNextKeyView" ref="764848078"/> + <string key="NSReuseIdentifierKey">_NS:9</string> + <bool key="NSEnabled">YES</bool> + <object class="NSPopUpButtonCell" key="NSCell" id="296493741"> + <int key="NSCellFlags">-2076180416</int> + <int key="NSCellFlags2">2048</int> + <reference key="NSSupport" ref="918131184"/> + <string key="NSCellIdentifier">_NS:9</string> + <reference key="NSControlView" ref="723933460"/> + <int key="NSButtonFlags">109199360</int> + <int key="NSButtonFlags2">129</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + <object class="NSMenuItem" key="NSMenuItem" id="932251294"> + <reference key="NSMenu" ref="261034311"/> + <string key="NSTitle">Disabled</string> + <string key="NSKeyEquiv"/> + <int key="NSKeyEquivModMask">1048576</int> + <int key="NSMnemonicLoc">2147483647</int> + <object class="NSCustomResource" key="NSOnImage" id="939390407"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuCheckmark</string> + </object> + <object class="NSCustomResource" key="NSMixedImage" id="254824687"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuMixedState</string> + </object> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="296493741"/> + </object> + <bool key="NSMenuItemRespectAlignment">YES</bool> + <object class="NSMenu" key="NSMenu" id="261034311"> + <string key="NSTitle">OtherViews</string> + <array class="NSMutableArray" key="NSMenuItems"> + <reference ref="932251294"/> + <object class="NSMenuItem" id="92975853"> + <reference key="NSMenu" ref="261034311"/> + <string key="NSTitle">Master</string> + <string key="NSKeyEquiv"/> + <int key="NSKeyEquivModMask">1048576</int> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="939390407"/> + <reference key="NSMixedImage" ref="254824687"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="296493741"/> + </object> + <object class="NSMenuItem" id="712227471"> + <reference key="NSMenu" ref="261034311"/> + <string key="NSTitle">Slave</string> + <string key="NSKeyEquiv"/> + <int key="NSKeyEquivModMask">1048576</int> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="939390407"/> + <reference key="NSMixedImage" ref="254824687"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="296493741"/> + </object> + </array> + <reference key="NSMenuFont" ref="918131184"/> + </object> + <int key="NSPreferredEdge">1</int> + <bool key="NSUsesItemFromMenu">YES</bool> + <bool key="NSAltersState">YES</bool> + <int key="NSArrowPosition">2</int> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + </array> + <string key="NSFrame">{{1, 1}, {219, 102}}</string> + <reference key="NSSuperview" ref="82652069"/> + <reference key="NSNextKeyView" ref="83047673"/> + <string key="NSReuseIdentifierKey">_NS:11</string> + </object> + </array> + <string key="NSFrame">{{17, 57}, {221, 104}}</string> + <reference key="NSSuperview" ref="127793487"/> + <reference key="NSNextKeyView" ref="382228618"/> + <string key="NSReuseIdentifierKey">_NS:9</string> + <string key="NSOffsets">{0, 0}</string> + <object class="NSTextFieldCell" key="NSTitleCell"> + <int key="NSCellFlags">67108864</int> + <int key="NSCellFlags2">0</int> + <string key="NSContents">Box</string> + <object class="NSFont" key="NSSupport"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">11</double> + <int key="NSfFlags">3100</int> + </object> + <reference key="NSBackgroundColor" ref="305691350"/> + <object class="NSColor" key="NSTextColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MCAwLjgwMDAwMDAxMTkAA</bytes> + </object> + </object> + <reference key="NSContentView" ref="382228618"/> + <int key="NSBorderType">1</int> + <int key="NSBoxType">0</int> + <int key="NSTitlePosition">0</int> + <bool key="NSTransparent">NO</bool> + </object> + <object class="NSButton" id="537116407"> + <reference key="NSNextResponder" ref="127793487"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{16, 164}, {61, 18}}</string> + <reference key="NSSuperview" ref="127793487"/> + <reference key="NSNextKeyView" ref="82652069"/> + <string key="NSReuseIdentifierKey">_NS:9</string> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="683031745"> + <int key="NSCellFlags">-2080374784</int> + <int key="NSCellFlags2">268697600</int> + <string key="NSContents">Enabled</string> + <object class="NSFont" key="NSSupport"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">9</double> + <int key="NSfFlags">3614</int> + </object> + <string key="NSCellIdentifier">_NS:9</string> + <reference key="NSControlView" ref="537116407"/> + <int key="NSButtonFlags">1211912448</int> + <int key="NSButtonFlags2">2</int> + <object class="NSCustomResource" key="NSNormalImage"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSSwitch</string> + </object> + <object class="NSButtonImageSource" key="NSAlternateImage"> + <string key="NSImageName">NSSwitch</string> + </object> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + </object> + </array> + <string key="NSFrameSize">{255, 197}</string> + <reference key="NSSuperview"/> + <reference key="NSNextKeyView" ref="537116407"/> + </object> + <string key="NSScreenRect">{{0, 0}, {1920, 1080}}</string> + <string key="NSMinSize">{283.34100000000001, 129}</string> + <string key="NSMaxSize">{10000000000000, 10000000000000}</string> + <bool key="NSWindowIsRestorable">YES</bool> + </object> + </array> + <object class="IBObjectContainer" key="IBDocument.Objects"> + <array class="NSMutableArray" key="connectionRecords"> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">ok:</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="45529240"/> + </object> + <int key="connectionID">133</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">cancel:</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="348063277"/> + </object> + <int key="connectionID">134</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">window</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="151678379"/> + </object> + <int key="connectionID">141</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">enabledButton</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="537116407"/> + </object> + <int key="connectionID">196</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">toggleEnabled:</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="537116407"/> + </object> + <int key="connectionID">197</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">portField</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="471354310"/> + </object> + <int key="connectionID">215</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">ipAddressField</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="817504184"/> + </object> + <int key="connectionID">217</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">configBox</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="82652069"/> + </object> + <int key="connectionID">218</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">playerMenu</string> + <reference key="source" ref="509300364"/> + <reference key="destination" ref="723933460"/> + </object> + <int key="connectionID">219</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">delegate</string> + <reference key="source" ref="151678379"/> + <reference key="destination" ref="509300364"/> + </object> + <int key="connectionID">158</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">nextKeyView</string> + <reference key="source" ref="45529240"/> + <reference key="destination" ref="348063277"/> + </object> + <int key="connectionID">9</int> + </object> + </array> + <object class="IBMutableOrderedSet" key="objectRecords"> + <array key="orderedObjects"> + <object class="IBObjectRecord"> + <int key="objectID">0</int> + <array key="object" id="0"/> + <reference key="children" ref="1058953981"/> + <nil key="parent"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-2</int> + <reference key="object" ref="509300364"/> + <reference key="parent" ref="0"/> + <string key="objectName">File's Owner</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-1</int> + <reference key="object" ref="141927618"/> + <reference key="parent" ref="0"/> + <string key="objectName">First Responder</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5</int> + <reference key="object" ref="151678379"/> + <array class="NSMutableArray" key="children"> + <reference ref="127793487"/> + </array> + <reference key="parent" ref="0"/> + <string key="objectName">Window</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">6</int> + <reference key="object" ref="127793487"/> + <array class="NSMutableArray" key="children"> + <reference ref="82652069"/> + <reference ref="537116407"/> + <reference ref="348063277"/> + <reference ref="45529240"/> + </array> + <reference key="parent" ref="151678379"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">7</int> + <reference key="object" ref="348063277"/> + <array class="NSMutableArray" key="children"> + <reference ref="921967453"/> + </array> + <reference key="parent" ref="127793487"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">8</int> + <reference key="object" ref="45529240"/> + <array class="NSMutableArray" key="children"> + <reference ref="764681236"/> + </array> + <reference key="parent" ref="127793487"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">186</int> + <reference key="object" ref="921967453"/> + <reference key="parent" ref="348063277"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">187</int> + <reference key="object" ref="764681236"/> + <reference key="parent" ref="45529240"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-3</int> + <reference key="object" ref="44201914"/> + <reference key="parent" ref="0"/> + <string key="objectName">Application</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">193</int> + <reference key="object" ref="82652069"/> + <array class="NSMutableArray" key="children"> + <reference ref="83047673"/> + <reference ref="817504184"/> + <reference ref="704624630"/> + <reference ref="723933460"/> + <reference ref="764848078"/> + <reference ref="471354310"/> + </array> + <reference key="parent" ref="127793487"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">194</int> + <reference key="object" ref="537116407"/> + <array class="NSMutableArray" key="children"> + <reference ref="683031745"/> + </array> + <reference key="parent" ref="127793487"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">195</int> + <reference key="object" ref="683031745"/> + <reference key="parent" ref="537116407"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">198</int> + <reference key="object" ref="83047673"/> + <array class="NSMutableArray" key="children"> + <reference ref="546071709"/> + </array> + <reference key="parent" ref="82652069"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">199</int> + <reference key="object" ref="546071709"/> + <reference key="parent" ref="83047673"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">200</int> + <reference key="object" ref="704624630"/> + <array class="NSMutableArray" key="children"> + <reference ref="486886176"/> + </array> + <reference key="parent" ref="82652069"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">201</int> + <reference key="object" ref="486886176"/> + <reference key="parent" ref="704624630"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">202</int> + <reference key="object" ref="764848078"/> + <array class="NSMutableArray" key="children"> + <reference ref="870814783"/> + </array> + <reference key="parent" ref="82652069"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">203</int> + <reference key="object" ref="870814783"/> + <reference key="parent" ref="764848078"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">204</int> + <reference key="object" ref="817504184"/> + <array class="NSMutableArray" key="children"> + <reference ref="407033884"/> + </array> + <reference key="parent" ref="82652069"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">205</int> + <reference key="object" ref="407033884"/> + <reference key="parent" ref="817504184"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">206</int> + <reference key="object" ref="471354310"/> + <array class="NSMutableArray" key="children"> + <reference ref="843862144"/> + </array> + <reference key="parent" ref="82652069"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">207</int> + <reference key="object" ref="843862144"/> + <array class="NSMutableArray" key="children"> + <reference ref="1041323832"/> + </array> + <reference key="parent" ref="471354310"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">208</int> + <reference key="object" ref="723933460"/> + <array class="NSMutableArray" key="children"> + <reference ref="296493741"/> + </array> + <reference key="parent" ref="82652069"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">209</int> + <reference key="object" ref="296493741"/> + <array class="NSMutableArray" key="children"> + <reference ref="261034311"/> + </array> + <reference key="parent" ref="723933460"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">210</int> + <reference key="object" ref="261034311"/> + <array class="NSMutableArray" key="children"> + <reference ref="92975853"/> + <reference ref="712227471"/> + <reference ref="932251294"/> + </array> + <reference key="parent" ref="296493741"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">211</int> + <reference key="object" ref="92975853"/> + <reference key="parent" ref="261034311"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">212</int> + <reference key="object" ref="712227471"/> + <reference key="parent" ref="261034311"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">213</int> + <reference key="object" ref="932251294"/> + <reference key="parent" ref="261034311"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">220</int> + <reference key="object" ref="1041323832"/> + <reference key="parent" ref="843862144"/> + </object> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="186.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="187.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="193.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="194.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="195.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="198.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="199.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="200.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="201.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="202.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="203.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="204.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="205.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="206.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="207.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="208.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="209.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="210.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="211.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="212.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="213.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <integer value="1041" key="220.IBNumberFormatterBehaviorMetadataKey"/> + <boolean value="YES" key="220.IBNumberFormatterLocalizesFormatMetadataKey"/> + <string key="220.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + </dictionary> + <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> + <nil key="activeLocalization"/> + <dictionary class="NSMutableDictionary" key="localizations"/> + <nil key="sourceID"/> + <int key="maxID">220</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"/> + <int key="IBDocument.localizationMode">0</int> + <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string> + <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies"> + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string> + <real value="1060" key="NS.object.0"/> + </object> + <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> + <int key="IBDocument.defaultPropertyAccessControl">3</int> + <dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes"> + <string key="NSMenuCheckmark">{11, 11}</string> + <string key="NSMenuMixedState">{10, 3}</string> + <string key="NSSwitch">{15, 15}</string> + </dictionary> + </data> +</archive> 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 Binary files differnew file mode 100755 index 00000000..5f4e6dd7 --- /dev/null +++ b/macosx/plugins/Bladesio1/English.lproj/InfoPlist.strings 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIconFile</key> + <string></string> + <key>CFBundleIdentifier</key> + <string>net.pcsxr.Bladesio1</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundlePackageType</key> + <string>PsxP</string> + <key>CFBundleSignature</key> + <string>CdDI</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>NSPrincipalClass</key> + <string>Bladesio1PluginConfigController</string> +</dict> +</plist> 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 <Cocoa/Cocoa.h> + +@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 <whistler@openoffice.org>. + * All Rights Reserved. + * + * Based on: Cdrom for Psemu Pro like Emulators + * By: linuzappz <linuzappz@hotmail.com> + * + * 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 <http://www.gnu.org/licenses>. + */ + +#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 <whistler@openoffice.org>. + * All Rights Reserved. + * + * Based on: Cdrom for Psemu Pro like Emulators + * By: linuzappz <linuzappz@hotmail.com> + * + * 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 <http://www.gnu.org/licenses>. + */ + +#include <string.h> +#include <stdint.h> +#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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>BuildVersion</key> + <string>38</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>ProjectName</key> + <string>DFCdrom</string> + <key>SourceVersion</key> + <string>2350000</string> +</dict> +</plist> |
