mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
Rotation on iOS fixes: Make sure the setting is saved, etc.
This commit is contained in:
1 parent
c5dcb0009c
commit
e2b21d26bf
5 files changed
+39
-5
No files matched your search
+11
-2
@@ -213,6 +213,14 @@ static int DefaultUIScaleFactor() {
|
||||
#endif
|
||||
}
|
||||
|
||||
static int DefaultScreenRotation() {
|
||||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
return ROTATION_LOCKED_HORIZONTAL;
|
||||
#else
|
||||
return ROTATION_AUTO;
|
||||
#endif
|
||||
}
|
||||
|
||||
static const ConfigSetting generalSettings[] = {
|
||||
ConfigSetting("FirstRun", &g_Config.bFirstRun, true, CfgFlag::DEFAULT),
|
||||
ConfigSetting("RunCount", &g_Config.iRunCount, 0, CfgFlag::DEFAULT),
|
||||
@@ -297,9 +305,10 @@ static const ConfigSetting generalSettings[] = {
|
||||
ConfigSetting("RemoteISOShareType", &g_Config.iRemoteISOShareType, (int)RemoteISOShareType::RECENT, CfgFlag::DEFAULT),
|
||||
ConfigSetting("AskForExitConfirmationAfterSeconds", &g_Config.iAskForExitConfirmationAfterSeconds, 60, CfgFlag::PER_GAME),
|
||||
|
||||
#ifdef __ANDROID__
|
||||
ConfigSetting("ScreenRotation", &g_Config.iScreenRotation, ROTATION_AUTO_HORIZONTAL),
|
||||
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
|
||||
ConfigSetting("ScreenRotation", &g_Config.iScreenRotation, &DefaultScreenRotation, CfgFlag::DEFAULT),
|
||||
#endif
|
||||
|
||||
ConfigSetting("InternalScreenRotation", &g_Config.iInternalScreenRotation, ROTATION_LOCKED_HORIZONTAL, CfgFlag::PER_GAME),
|
||||
|
||||
ConfigSetting("BackgroundAnimation", &g_Config.iBackgroundAnimation, 1, CfgFlag::DEFAULT),
|
||||
|
||||
Reference in new issue
Block a user