From 672d8249464b42c4fde558883f151b8e7e1ec480 Mon Sep 17 00:00:00 2001 From: jvernet Date: Fri, 1 Jan 2016 13:19:17 +0100 Subject: [PATCH] Yes, it work ! https://youtu.be/C5no96qnCNQ --- Apple2Mac/Apple2Mac.xcodeproj/project.pbxproj | 154 ++++++++++++++++++ Apple2Mac/Apple2etvOS/AppDelegate.h | 17 ++ Apple2Mac/Apple2etvOS/AppDelegate.m | 45 +++++ .../Content.imageset/Contents.json | 12 ++ .../Back.imagestacklayer/Contents.json | 6 + .../App Icon - Large.imagestack/Contents.json | 17 ++ .../Content.imageset/Contents.json | 12 ++ .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 12 ++ .../Middle.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 12 ++ .../Back.imagestacklayer/Contents.json | 6 + .../App Icon - Small.imagestack/Contents.json | 17 ++ .../Content.imageset/Contents.json | 12 ++ .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 12 ++ .../Middle.imagestacklayer/Contents.json | 6 + .../Contents.json | 26 +++ .../Top Shelf Image.imageset/Contents.json | 12 ++ .../Apple2etvOS/Assets.xcassets/Contents.json | 6 + .../LaunchImage.launchimage/Contents.json | 15 ++ .../Apple2etvOS/Base.lproj/Main.storyboard | 25 +++ Apple2Mac/Apple2etvOS/Info.plist | 49 ++++++ Apple2Mac/Apple2etvOS/ViewController.h | 15 ++ Apple2Mac/Apple2etvOS/ViewController.m | 27 +++ Apple2Mac/Apple2etvOS/main.m | 16 ++ Apple2Mac/Apple2iOS/Apple2iOS-Info.plist | 5 +- 27 files changed, 553 insertions(+), 1 deletion(-) create mode 100644 Apple2Mac/Apple2etvOS/AppDelegate.h create mode 100644 Apple2Mac/Apple2etvOS/AppDelegate.m create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json create mode 100644 Apple2Mac/Apple2etvOS/Base.lproj/Main.storyboard create mode 100644 Apple2Mac/Apple2etvOS/Info.plist create mode 100644 Apple2Mac/Apple2etvOS/ViewController.h create mode 100644 Apple2Mac/Apple2etvOS/ViewController.m create mode 100644 Apple2Mac/Apple2etvOS/main.m diff --git a/Apple2Mac/Apple2Mac.xcodeproj/project.pbxproj b/Apple2Mac/Apple2Mac.xcodeproj/project.pbxproj index 78c5c148..1fdc3eef 100644 --- a/Apple2Mac/Apple2Mac.xcodeproj/project.pbxproj +++ b/Apple2Mac/Apple2Mac.xcodeproj/project.pbxproj @@ -134,6 +134,12 @@ 4ECFC3A31C368647008E2633 /* mystery.dsk in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4ECFC39C1C368620008E2633 /* mystery.dsk */; }; 4ECFC3A41C368649008E2633 /* speedtest.dsk in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4ECBEADD1C3432010046F537 /* speedtest.dsk */; }; 4ECFC3A51C36864B008E2633 /* testvm1.dsk in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4ECBEADE1C3432010046F537 /* testvm1.dsk */; }; + 4ECFC3AE1C368EAB008E2633 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ECFC3AD1C368EAB008E2633 /* main.m */; }; + 4ECFC3B11C368EAB008E2633 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ECFC3B01C368EAB008E2633 /* AppDelegate.m */; }; + 4ECFC3B41C368EAB008E2633 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ECFC3B31C368EAB008E2633 /* ViewController.m */; }; + 4ECFC3B71C368EAB008E2633 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4ECFC3B51C368EAB008E2633 /* Main.storyboard */; }; + 4ECFC3B91C368EAC008E2633 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4ECFC3B81C368EAC008E2633 /* Assets.xcassets */; }; + 4ECFC3BF1C368ED3008E2633 /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4ECFC3BE1C368ED3008E2633 /* GameController.framework */; }; 4EEF0E8A1C3536A3001BEB67 /* disksViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EEF0E891C3536A3001BEB67 /* disksViewController.m */; }; 773B3D101956885A0085CE5F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 773B3D0F1956885A0085CE5F /* Cocoa.framework */; }; 773B3D1A1956885A0085CE5F /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 773B3D181956885A0085CE5F /* InfoPlist.strings */; }; @@ -416,6 +422,16 @@ 4ECFC39B1C368620008E2633 /* flapple140.po */ = {isa = PBXFileReference; lastKnownFileType = file; path = flapple140.po; sourceTree = ""; }; 4ECFC39C1C368620008E2633 /* mystery.dsk */ = {isa = PBXFileReference; lastKnownFileType = file; path = mystery.dsk; sourceTree = ""; }; 4ECFC39D1C368620008E2633 /* NSCT.dsk */ = {isa = PBXFileReference; lastKnownFileType = file; path = NSCT.dsk; sourceTree = ""; }; + 4ECFC3AA1C368EAB008E2633 /* Apple2etvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Apple2etvOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4ECFC3AD1C368EAB008E2633 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 4ECFC3AF1C368EAB008E2633 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 4ECFC3B01C368EAB008E2633 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 4ECFC3B21C368EAB008E2633 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 4ECFC3B31C368EAB008E2633 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 4ECFC3B61C368EAB008E2633 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 4ECFC3B81C368EAC008E2633 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 4ECFC3BA1C368EAC008E2633 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 4ECFC3BE1C368ED3008E2633 /* GameController.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameController.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.1.sdk/System/Library/Frameworks/GameController.framework; sourceTree = DEVELOPER_DIR; }; 4EEF0E881C3536A3001BEB67 /* disksViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = disksViewController.h; sourceTree = ""; }; 4EEF0E891C3536A3001BEB67 /* disksViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = disksViewController.m; sourceTree = ""; }; 773B3D0C1956885A0085CE5F /* Apple2Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Apple2Mac.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -576,6 +592,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 4ECFC3A71C368EAB008E2633 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4ECFC3BF1C368ED3008E2633 /* GameController.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 773B3D09195688590085CE5F /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -635,6 +659,29 @@ path = ../disks; sourceTree = ""; }; + 4ECFC3AB1C368EAB008E2633 /* Apple2etvOS */ = { + isa = PBXGroup; + children = ( + 4ECFC3AF1C368EAB008E2633 /* AppDelegate.h */, + 4ECFC3B01C368EAB008E2633 /* AppDelegate.m */, + 4ECFC3B21C368EAB008E2633 /* ViewController.h */, + 4ECFC3B31C368EAB008E2633 /* ViewController.m */, + 4ECFC3B51C368EAB008E2633 /* Main.storyboard */, + 4ECFC3B81C368EAC008E2633 /* Assets.xcassets */, + 4ECFC3BA1C368EAC008E2633 /* Info.plist */, + 4ECFC3AC1C368EAB008E2633 /* Supporting Files */, + ); + path = Apple2etvOS; + sourceTree = ""; + }; + 4ECFC3AC1C368EAB008E2633 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 4ECFC3AD1C368EAB008E2633 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; 773B3D03195688590085CE5F = { isa = PBXGroup; children = ( @@ -643,6 +690,7 @@ 773B3D331956885A0085CE5F /* Apple2MacTests */, 773B3D151956885A0085CE5F /* Apple2Mac */, 935C55291C12BA5F0013166D /* Apple2iOS */, + 4ECFC3AB1C368EAB008E2633 /* Apple2etvOS */, 773B3D431956897D0085CE5F /* Classes */, 773B3D4519568A570085CE5F /* src */, 935C55A51C1389000013166D /* externals */, @@ -661,6 +709,7 @@ 779F569119EB0B9100A6F107 /* Apple2MacTestDisplay.app */, 4AD4FEC31A52464F00F958EC /* Apple2MacTestDisk.app */, 935C55281C12BA5F0013166D /* Apple2iOS.app */, + 4ECFC3AA1C368EAB008E2633 /* Apple2etvOS.app */, ); name = Products; sourceTree = ""; @@ -668,6 +717,7 @@ 773B3D0E1956885A0085CE5F /* Frameworks */ = { isa = PBXGroup; children = ( + 4ECFC3BE1C368ED3008E2633 /* GameController.framework */, 77C279601A1047AE000FE33F /* DDHidLib.xcodeproj */, 779F565F19EAF6D000A6F107 /* OpenAL.framework */, 773B3D0F1956885A0085CE5F /* Cocoa.framework */, @@ -1019,6 +1069,23 @@ productReference = 4ADC522719E8CA4500186B36 /* Apple2MacTestVM.app */; productType = "com.apple.product-type.application"; }; + 4ECFC3A91C368EAB008E2633 /* Apple2etvOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4ECFC3BB1C368EAC008E2633 /* Build configuration list for PBXNativeTarget "Apple2etvOS" */; + buildPhases = ( + 4ECFC3A61C368EAB008E2633 /* Sources */, + 4ECFC3A71C368EAB008E2633 /* Frameworks */, + 4ECFC3A81C368EAB008E2633 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Apple2etvOS; + productName = Apple2etvOS; + productReference = 4ECFC3AA1C368EAB008E2633 /* Apple2etvOS.app */; + productType = "com.apple.product-type.application"; + }; 773B3D0B195688590085CE5F /* Apple2Mac */ = { isa = PBXNativeTarget; buildConfigurationList = 773B3D3D1956885A0085CE5F /* Build configuration list for PBXNativeTarget "Apple2Mac" */; @@ -1107,6 +1174,15 @@ LastUpgradeCheck = 0510; ORGANIZATIONNAME = deadc0de.org; TargetAttributes = { + 4ECFC3A91C368EAB008E2633 = { + CreatedOnToolsVersion = 7.2; + DevelopmentTeam = 774X2MBDTH; + SystemCapabilities = { + com.apple.GameControllers.appletvos = { + enabled = 1; + }; + }; + }; 935C55271C12BA5F0013166D = { CreatedOnToolsVersion = 7.1.1; DevelopmentTeam = 774X2MBDTH; @@ -1139,6 +1215,7 @@ 779F566119EB0B9100A6F107 /* Apple2MacTestDisplay */, 4ADC51FB19E8CA4500186B36 /* Apple2MacTestVM */, 935C55271C12BA5F0013166D /* Apple2iOS */, + 4ECFC3A91C368EAB008E2633 /* Apple2etvOS */, ); }; /* End PBXProject section */ @@ -1217,6 +1294,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 4ECFC3A81C368EAB008E2633 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4ECFC3B91C368EAC008E2633 /* Assets.xcassets in Resources */, + 4ECFC3B71C368EAB008E2633 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 773B3D0A195688590085CE5F /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -1533,6 +1619,16 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 4ECFC3A61C368EAB008E2633 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4ECFC3B41C368EAB008E2633 /* ViewController.m in Sources */, + 4ECFC3B11C368EAB008E2633 /* AppDelegate.m in Sources */, + 4ECFC3AE1C368EAB008E2633 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 773B3D08195688590085CE5F /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -1737,6 +1833,14 @@ name = "MainMenu-Test.xib"; sourceTree = ""; }; + 4ECFC3B51C368EAB008E2633 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 4ECFC3B61C368EAB008E2633 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; 773B3D181956885A0085CE5F /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( @@ -1923,6 +2027,47 @@ }; name = Release; }; + 4ECFC3BC1C368EAC008E2633 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CLANG_WARN_UNREACHABLE_CODE = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = Apple2etvOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_BUNDLE_IDENTIFIER = bxo.Apple2etvOS; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 9.1; + }; + name = Debug; + }; + 4ECFC3BD1C368EAC008E2633 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CLANG_WARN_UNREACHABLE_CODE = YES; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = Apple2etvOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = bxo.Apple2etvOS; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 9.1; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; 773B3D3B1956885A0085CE5F /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -2265,6 +2410,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 4ECFC3BB1C368EAC008E2633 /* Build configuration list for PBXNativeTarget "Apple2etvOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4ECFC3BC1C368EAC008E2633 /* Debug */, + 4ECFC3BD1C368EAC008E2633 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 773B3D07195688590085CE5F /* Build configuration list for PBXProject "Apple2Mac" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Apple2Mac/Apple2etvOS/AppDelegate.h b/Apple2Mac/Apple2etvOS/AppDelegate.h new file mode 100644 index 00000000..87caeece --- /dev/null +++ b/Apple2Mac/Apple2etvOS/AppDelegate.h @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// Apple2etvOS +// +// Created by Jerome Vernet on 01/01/2016. +// Copyright © 2016 deadc0de.org. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/Apple2Mac/Apple2etvOS/AppDelegate.m b/Apple2Mac/Apple2etvOS/AppDelegate.m new file mode 100644 index 00000000..a32f3324 --- /dev/null +++ b/Apple2Mac/Apple2etvOS/AppDelegate.m @@ -0,0 +1,45 @@ +// +// AppDelegate.m +// Apple2etvOS +// +// Created by Jerome Vernet on 01/01/2016. +// Copyright © 2016 deadc0de.org. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 00000000..0564959f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json new file mode 100644 index 00000000..8bf75d9f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 00000000..0564959f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 00000000..0564959f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 00000000..0564959f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json new file mode 100644 index 00000000..8bf75d9f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 00000000..0564959f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 00000000..0564959f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json new file mode 100644 index 00000000..6a3dcfa5 --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json @@ -0,0 +1,26 @@ +{ + "assets" : [ + { + "size" : "1280x768", + "idiom" : "tv", + "filename" : "App Icon - Large.imagestack", + "role" : "primary-app-icon" + }, + { + "size" : "400x240", + "idiom" : "tv", + "filename" : "App Icon - Small.imagestack", + "role" : "primary-app-icon" + }, + { + "size" : "1920x720", + "idiom" : "tv", + "filename" : "Top Shelf Image.imageset", + "role" : "top-shelf-image" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json new file mode 100644 index 00000000..0564959f --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/Contents.json new file mode 100644 index 00000000..da4a164c --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/Apple2Mac/Apple2etvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 00000000..29d94c78 --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "orientation" : "landscape", + "idiom" : "tv", + "extent" : "full-screen", + "minimum-system-version" : "9.0", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Apple2Mac/Apple2etvOS/Base.lproj/Main.storyboard b/Apple2Mac/Apple2etvOS/Base.lproj/Main.storyboard new file mode 100644 index 00000000..3e6780b3 --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Base.lproj/Main.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Apple2Mac/Apple2etvOS/Info.plist b/Apple2Mac/Apple2etvOS/Info.plist new file mode 100644 index 00000000..34e38136 --- /dev/null +++ b/Apple2Mac/Apple2etvOS/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + GCSupportedGameControllers + + + ProfileName + ExtendedGamepad + + + ProfileName + Gamepad + + + ProfileName + MicroGamepad + + + GCSupportsControllerUserInteraction + + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + arm64 + + + diff --git a/Apple2Mac/Apple2etvOS/ViewController.h b/Apple2Mac/Apple2etvOS/ViewController.h new file mode 100644 index 00000000..a3201402 --- /dev/null +++ b/Apple2Mac/Apple2etvOS/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// Apple2etvOS +// +// Created by Jerome Vernet on 01/01/2016. +// Copyright © 2016 deadc0de.org. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/Apple2Mac/Apple2etvOS/ViewController.m b/Apple2Mac/Apple2etvOS/ViewController.m new file mode 100644 index 00000000..5b18ff23 --- /dev/null +++ b/Apple2Mac/Apple2etvOS/ViewController.m @@ -0,0 +1,27 @@ +// +// ViewController.m +// Apple2etvOS +// +// Created by Jerome Vernet on 01/01/2016. +// Copyright © 2016 deadc0de.org. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/Apple2Mac/Apple2etvOS/main.m b/Apple2Mac/Apple2etvOS/main.m new file mode 100644 index 00000000..c78904dc --- /dev/null +++ b/Apple2Mac/Apple2etvOS/main.m @@ -0,0 +1,16 @@ +// +// main.m +// Apple2etvOS +// +// Created by Jerome Vernet on 01/01/2016. +// Copyright © 2016 deadc0de.org. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/Apple2Mac/Apple2iOS/Apple2iOS-Info.plist b/Apple2Mac/Apple2iOS/Apple2iOS-Info.plist index d1614837..7e4f25b6 100644 --- a/Apple2Mac/Apple2iOS/Apple2iOS-Info.plist +++ b/Apple2Mac/Apple2iOS/Apple2iOS-Info.plist @@ -22,6 +22,8 @@ 1 LSRequiresIPhoneOS + UIFileSharingEnabled + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile @@ -32,7 +34,8 @@ UISupportedInterfaceOrientations - UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad