Skip to content

Commit

Permalink
iOS game mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX committed Aug 20, 2024
1 parent 0be9a78 commit 4e0cd88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ elseif (PLATFORM_IOS)
set_target_properties(${PROJECT_NAME} PROPERTIES
INSTALL_RPATH @executable_path/Frameworks
XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCSupportsGameMode YES
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCSupportsControllerUserInteraction YES
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCRequiresControllerUserInteraction YES
XCODE_ATTRIBUTE_INFOPLIST_KEY_LSApplicationCategoryType "public.app-category.games"
XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks"
XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/extern/borealis/library/lib/extern/angle/ios/"
Expand All @@ -239,6 +242,9 @@ elseif (PLATFORM_TVOS)
set_target_properties(${PROJECT_NAME} PROPERTIES
INSTALL_RPATH @executable_path/Frameworks
XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCSupportsGameMode YES
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCSupportsControllerUserInteraction YES
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCRequiresControllerUserInteraction YES
XCODE_ATTRIBUTE_INFOPLIST_KEY_LSApplicationCategoryType "public.app-category.games"
XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks"
XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/extern/borealis/library/lib/extern/angle/tvos/"
Expand Down
2 changes: 2 additions & 0 deletions app/platforms/ios/iOSBundleInfo.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,7 @@
<true/>
<key>LSApplicationCategoryType</key>
<string>public.app-category.games</string>
<key>GCSupportsGameMode</key>
<true/>
</dict>
</plist>

0 comments on commit 4e0cd88

Please sign in to comment.