mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Disable external display by default
Configuration is in system settings
This commit is contained in:
parent
c0a1404308
commit
0e7c85d89e
@ -1988,6 +1988,7 @@ if(TargetBin)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(IOS)
|
if(IOS)
|
||||||
|
list(APPEND NativeAssets ios/Settings.bundle)
|
||||||
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource} "ios/Launch Screen.storyboard")
|
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource} "ios/Launch Screen.storyboard")
|
||||||
else()
|
else()
|
||||||
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource})
|
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource})
|
||||||
@ -2044,6 +2045,7 @@ if(IOS)
|
|||||||
set_target_properties(${TargetBin} PROPERTIES
|
set_target_properties(${TargetBin} PROPERTIES
|
||||||
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/ios/PPSSPP-Info.plist"
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/ios/PPSSPP-Info.plist"
|
||||||
RESOURCE "ios/Launch Screen.storyboard"
|
RESOURCE "ios/Launch Screen.storyboard"
|
||||||
|
RESOURCE "ios/Settings.bundle"
|
||||||
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET ${DEPLOYMENT_TARGET}
|
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET ${DEPLOYMENT_TARGET}
|
||||||
XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "iPhone/iPad"
|
XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "iPhone/iPad"
|
||||||
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES
|
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES
|
||||||
|
@ -49,6 +49,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)setupDisplayListener {
|
- (void)setupDisplayListener {
|
||||||
|
// Disable external display by default
|
||||||
|
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"enable_external_display"] == NO) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ([self listenerActive]) {
|
if ([self listenerActive]) {
|
||||||
NSLog(@"setupDisplayListener already called");
|
NSLog(@"setupDisplayListener already called");
|
||||||
return;
|
return;
|
||||||
|
21
ios/Settings.bundle/Root.plist
Normal file
21
ios/Settings.bundle/Root.plist
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>StringsTable</key>
|
||||||
|
<string>Root</string>
|
||||||
|
<key>PreferenceSpecifiers</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSToggleSwitchSpecifier</string>
|
||||||
|
<key>Title</key>
|
||||||
|
<string>enable_external_display</string>
|
||||||
|
<key>Key</key>
|
||||||
|
<string>enable_external_display</string>
|
||||||
|
<key>DefaultValue</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
BIN
ios/Settings.bundle/en.lproj/Root.strings
Normal file
BIN
ios/Settings.bundle/en.lproj/Root.strings
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user