mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-02 15:56:21 +00:00
Add GameStream EOL link
This commit is contained in:
parent
2c422c77fb
commit
83fd8225e4
@ -16,6 +16,7 @@
|
|||||||
@property (atomic, nullable, retain) NSString * activeAddress;
|
@property (atomic, nullable, retain) NSString * activeAddress;
|
||||||
@property (atomic, nullable, retain) NSString * currentGame;
|
@property (atomic, nullable, retain) NSString * currentGame;
|
||||||
@property (atomic) unsigned short httpsPort;
|
@property (atomic) unsigned short httpsPort;
|
||||||
|
@property (atomic) BOOL isNvidiaServerSoftware;
|
||||||
|
|
||||||
@property (atomic, nullable, retain) NSData *serverCert;
|
@property (atomic, nullable, retain) NSData *serverCert;
|
||||||
@property (atomic, nullable, retain) NSString *address;
|
@property (atomic, nullable, retain) NSString *address;
|
||||||
|
@ -85,6 +85,9 @@
|
|||||||
host.currentGame = @"0";
|
host.currentGame = @"0";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GFE uses the Mjolnir codename in their state enum values
|
||||||
|
host.isNvidiaServerSoftware = [state containsString:@"MJOLNIR"];
|
||||||
|
|
||||||
NSInteger pairStatus;
|
NSInteger pairStatus;
|
||||||
if ([self getIntTag:TAG_PAIR_STATUS value:&pairStatus]) {
|
if ([self getIntTag:TAG_PAIR_STATUS value:&pairStatus]) {
|
||||||
host.pairState = pairStatus ? PairStatePaired : PairStateUnpaired;
|
host.pairState = pairStatus ? PairStatePaired : PairStateUnpaired;
|
||||||
|
@ -32,6 +32,10 @@ FOUNDATION_EXPORT NSString *const deviceName;
|
|||||||
+ (unsigned short) addressPortStringToPort:(NSString*)addressPort;
|
+ (unsigned short) addressPortStringToPort:(NSString*)addressPort;
|
||||||
+ (NSString*) addressAndPortToAddressPortString:(NSString*)address port:(unsigned short)port;
|
+ (NSString*) addressAndPortToAddressPortString:(NSString*)address port:(unsigned short)port;
|
||||||
|
|
||||||
|
#if !TARGET_OS_TV
|
||||||
|
+ (void) launchUrl:(NSString*)urlString;
|
||||||
|
#endif
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSString (NSStringWithTrim)
|
@interface NSString (NSStringWithTrim)
|
||||||
|
@ -64,11 +64,17 @@ NSString *const deviceName = @"roth";
|
|||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !TARGET_OS_TV
|
||||||
|
+ (void) launchUrl:(NSString*)urlString {
|
||||||
|
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
+ (void) addHelpOptionToDialog:(UIAlertController*)dialog {
|
+ (void) addHelpOptionToDialog:(UIAlertController*)dialog {
|
||||||
#if !TARGET_OS_TV
|
#if !TARGET_OS_TV
|
||||||
// tvOS doesn't have a browser
|
// tvOS doesn't have a browser
|
||||||
[dialog addAction:[UIAlertAction actionWithTitle:@"Help" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
[dialog addAction:[UIAlertAction actionWithTitle:@"Help" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
||||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"]];
|
[Utils launchUrl:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"];
|
||||||
}]];
|
}]];
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -492,6 +492,14 @@ static NSMutableSet* hostList;
|
|||||||
self->_showHiddenApps = YES;
|
self->_showHiddenApps = YES;
|
||||||
[self hostClicked:host view:view];
|
[self hostClicked:host view:view];
|
||||||
}]];
|
}]];
|
||||||
|
|
||||||
|
#if !TARGET_OS_TV
|
||||||
|
if (host.isNvidiaServerSoftware) {
|
||||||
|
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"NVIDIA GameStream End-of-Service" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
||||||
|
[Utils launchUrl:@"https://github.com/moonlight-stream/moonlight-docs/wiki/NVIDIA-GameStream-End-Of-Service-Announcement-FAQ"];
|
||||||
|
}]];
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"Test Network" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action) {
|
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"Test Network" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action) {
|
||||||
[self showLoadingFrame:^{
|
[self showLoadingFrame:^{
|
||||||
@ -524,8 +532,11 @@ static NSMutableSet* hostList;
|
|||||||
}]];
|
}]];
|
||||||
#if !TARGET_OS_TV
|
#if !TARGET_OS_TV
|
||||||
if (host.state != StateOnline) {
|
if (host.state != StateOnline) {
|
||||||
|
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"NVIDIA GameStream End-of-Service" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
||||||
|
[Utils launchUrl:@"https://github.com/moonlight-stream/moonlight-docs/wiki/NVIDIA-GameStream-End-Of-Service-Announcement-FAQ"];
|
||||||
|
}]];
|
||||||
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"Connection Help" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"Connection Help" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
||||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"]];
|
[Utils launchUrl:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"];
|
||||||
}]];
|
}]];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user