mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
simplify + use trololo instead of nyancat
This commit is contained in:
@@ -260,7 +260,7 @@ device_subscribe_cb(am_device_notif_context_t ctx)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
system("open http://www.youtube.com/watch?v=QH2-TGUlwu4");
|
||||
system("open http://www.youtube.com/watch?v=1orMXD_Ijbs&feature=fvst");
|
||||
//fprintf(stderr, "usage: deploy [-d] <path-to-app>\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
17
bin/sim.m
17
bin/sim.m
@@ -296,23 +296,14 @@ start_capture(id delegate)
|
||||
if (repl_fd_lock == nil) {
|
||||
repl_fd_lock = [NSLock new];
|
||||
}
|
||||
|
||||
[repl_fd_lock lock];
|
||||
|
||||
if (![self sendString:expression]) {
|
||||
goto bail;
|
||||
}
|
||||
|
||||
NSString *res = nil;
|
||||
while (true) {
|
||||
if ([self sendString:expression]) {
|
||||
res = [self receiveString];
|
||||
if (res == nil) {
|
||||
goto bail;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
bail:
|
||||
[repl_fd_lock unlock];
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -474,7 +465,7 @@ bail:
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
system("open http://www.youtube.com/watch?v=QH2-TGUlwu4");
|
||||
system("open http://www.youtube.com/watch?v=1orMXD_Ijbs&feature=fvst");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user