mirror of
https://github.com/ksherlock/ample.git
synced 2025-02-22 13:29:02 +00:00
add interface for -share_directory (booti) and -bitbanger (null modem)
This commit is contained in:
parent
9ed83bf316
commit
576931cd71
@ -370,6 +370,56 @@ DQ
|
|||||||
</subviews>
|
</subviews>
|
||||||
</view>
|
</view>
|
||||||
</tabViewItem>
|
</tabViewItem>
|
||||||
|
<tabViewItem label="Paths" identifier="" id="PVN-Iw-nYG">
|
||||||
|
<view key="view" id="5qP-bQ-Id6">
|
||||||
|
<rect key="frame" x="10" y="33" width="672" height="114"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<textField toolTip="path or socket.address:port" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Wga-1O-bDR">
|
||||||
|
<rect key="frame" x="132" y="90" width="523" height="21"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" placeholderString="socket.127.0.0.1:23 or /path/to/file" drawsBackground="YES" id="6d8-LZ-wh1">
|
||||||
|
<font key="font" usesAppearanceFont="YES"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="value" keyPath="self.mameBitBanger" id="q9v-k6-Ueu"/>
|
||||||
|
</connections>
|
||||||
|
</textField>
|
||||||
|
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VDW-FX-9az">
|
||||||
|
<rect key="frame" x="132" y="59" width="523" height="21"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||||
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" placeholderString="/path/to/directory/" drawsBackground="YES" id="ykl-aj-n1L">
|
||||||
|
<font key="font" usesAppearanceFont="YES"/>
|
||||||
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
<connections>
|
||||||
|
<binding destination="-2" name="value" keyPath="self.mameShareDirectory" id="ZR5-Uk-0yZ"/>
|
||||||
|
</connections>
|
||||||
|
</textField>
|
||||||
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uPk-SB-lIF">
|
||||||
|
<rect key="frame" x="15" y="92" width="71" height="16"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<textFieldCell key="cell" lineBreakMode="clipping" title="Bit Banger:" id="9jA-4x-Abr">
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="upA-x5-LVd">
|
||||||
|
<rect key="frame" x="15" y="61" width="103" height="16"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<textFieldCell key="cell" lineBreakMode="clipping" title="Share Directory:" id="RmQ-pY-o5K">
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
</subviews>
|
||||||
|
</view>
|
||||||
|
</tabViewItem>
|
||||||
</tabViewItems>
|
</tabViewItems>
|
||||||
</tabView>
|
</tabView>
|
||||||
<customView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="J9O-xI-P5J" customClass="FlippedView">
|
<customView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="J9O-xI-P5J" customClass="FlippedView">
|
||||||
|
@ -50,6 +50,7 @@ static NSString *kContextMachine = @"kContextMachine";
|
|||||||
@property NSString *mameWAVPath;
|
@property NSString *mameWAVPath;
|
||||||
@property NSString *mameVGMPath;
|
@property NSString *mameVGMPath;
|
||||||
@property NSString *mameShareDirectory;
|
@property NSString *mameShareDirectory;
|
||||||
|
@property NSString *mameBitBanger;
|
||||||
|
|
||||||
@property NSInteger mameSpeed;
|
@property NSInteger mameSpeed;
|
||||||
|
|
||||||
@ -103,7 +104,7 @@ static NSString *kContextMachine = @"kContextMachine";
|
|||||||
@"mameAVI", @"mameAVIPath",
|
@"mameAVI", @"mameAVIPath",
|
||||||
@"mameWAV", @"mameWAVPath",
|
@"mameWAV", @"mameWAVPath",
|
||||||
@"mameVGM", @"mameVGMPath",
|
@"mameVGM", @"mameVGMPath",
|
||||||
@"mameShareDirectory",
|
@"mameShareDirectory", @"mameBitBanger",
|
||||||
@"mameBGFX", @"mameBackend", @"mameEffects",
|
@"mameBGFX", @"mameBackend", @"mameEffects",
|
||||||
@"software",
|
@"software",
|
||||||
];
|
];
|
||||||
@ -437,6 +438,10 @@ static NSString *ShellQuote(NSString *s) {
|
|||||||
[argv addObject: _mameShareDirectory];
|
[argv addObject: _mameShareDirectory];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_mameBitBanger && [_mameBitBanger length]) {
|
||||||
|
[argv addObject: @"-bitbanger"];
|
||||||
|
[argv addObject: _mameBitBanger];
|
||||||
|
}
|
||||||
|
|
||||||
[self setCommandLine: JoinArguments(argv, nil)];
|
[self setCommandLine: JoinArguments(argv, nil)];
|
||||||
[self setArgs: argv];
|
[self setArgs: argv];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user