mirror of
https://github.com/ksherlock/ample.git
synced 2025-04-07 13:38:01 +00:00
whitespace
This commit is contained in:
parent
82a73ef79c
commit
5aa8990ac6
@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
||||
Todo --
|
||||
- when there is a value, can filter the list by only including header items and the selected value
|
||||
- draw inactive menu items
|
||||
@ -21,7 +21,7 @@ Todo --
|
||||
- 1. it's not moved someplace more appropriate when the size shrinks
|
||||
- 2. it should display to the left or right in that case.
|
||||
- need to know parent's frame.
|
||||
|
||||
|
||||
- fuzzy search - minimum distance between letters?
|
||||
*/
|
||||
|
||||
|
@ -182,7 +182,7 @@
|
||||
|
||||
NSFileManager *fm = [NSFileManager defaultManager];
|
||||
NSError *error;
|
||||
|
||||
|
||||
NSDictionary *attr = [fm attributesOfItemAtPath: path error: &error];
|
||||
if (error) {
|
||||
NSLog(@"%@ : %@", path, error);
|
||||
|
@ -252,7 +252,7 @@ enum {
|
||||
_items = tmp;
|
||||
[self refreshROMs: nil];
|
||||
[_arrayController setContent: _items];
|
||||
|
||||
|
||||
//[_tableView reloadData];
|
||||
NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration];
|
||||
_session = [NSURLSession sessionWithConfiguration: config delegate: self delegateQueue: nil];
|
||||
@ -486,7 +486,7 @@ enum {
|
||||
NSUInteger tag = [sender tag];
|
||||
[sender setState: NSControlStateValueOn];
|
||||
|
||||
|
||||
|
||||
for (NSButton *b in _filterButtons) {
|
||||
if (b != sender) [b setState: NSControlStateValueOff];
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ static void AddSubview(NSView *parent, NSView *child) {
|
||||
AddSubview(_mediaView, [_mediaController view]);
|
||||
AddSubview(_machineView, [_machineViewController view]);
|
||||
|
||||
|
||||
|
||||
// can't be done until above views are set up.
|
||||
[self defaultLoad: nil];
|
||||
|
||||
@ -545,7 +545,7 @@ static NSString *ShellQuote(NSString *s) {
|
||||
}
|
||||
|
||||
// audio video.
|
||||
|
||||
|
||||
if (_mameAVI && [_mameAVIPath length]) {
|
||||
[argv addObject: @"-aviwrite"];
|
||||
[argv addObject: _mameAVIPath];
|
||||
|
@ -199,7 +199,7 @@
|
||||
|
||||
/*
|
||||
The parts we care about:
|
||||
|
||||
|
||||
<softwarelist name="" description="">
|
||||
<software name="">
|
||||
<description>...</description>
|
||||
|
@ -152,7 +152,7 @@ void sig_handler(int sig, siginfo_t *info, void *context) {
|
||||
ioctl(pty_fd, TIOCOUTQ, &wlen);
|
||||
ioctl(pty_fd, FIONREAD, &rlen);
|
||||
|
||||
if (rlen > 9999) rlen = 9999;
|
||||
if (rlen > 9999) rlen = 9999;
|
||||
if (wlen > 9999) wlen = 9999;
|
||||
|
||||
memcpy(buffer, "child pid: read queue: write queue: \n", 58);
|
||||
@ -163,7 +163,7 @@ void sig_handler(int sig, siginfo_t *info, void *context) {
|
||||
do {
|
||||
buffer[n--] = '0' + (x %10);
|
||||
x /= 10;
|
||||
} while(x);
|
||||
} while(x);
|
||||
|
||||
n = 35;
|
||||
x = rlen;
|
||||
@ -272,9 +272,9 @@ int main(int argc, char **argv) {
|
||||
tios.c_lflag = TTYDEF_LFLAG;
|
||||
tios.c_iflag = TTYDEF_IFLAG;
|
||||
tios.c_cflag = TTYDEF_CFLAG;
|
||||
}
|
||||
tios.c_ispeed = tios.c_ospeed = B9600;
|
||||
|
||||
}
|
||||
tios.c_ispeed = tios.c_ospeed = B9600;
|
||||
|
||||
|
||||
/* verify it's pty? */
|
||||
|
||||
@ -380,7 +380,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
// flush discards data.
|
||||
// flush discards data.
|
||||
//ok = tcflush(fd, TCIOFLUSH);
|
||||
ok = tcdrain(fd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user