File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed
CollapseLauncher/XAMLs/MainApp/Pages Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,8 @@ public bool IsGameBoost
505505
506506 public bool IsMobileMode
507507 {
508- get => Settings . SettingsCollapseMisc . LaunchMobileMode ;
508+ //get => Settings.SettingsCollapseMisc.LaunchMobileMode;
509+ get => false ;
509510 set => Settings . SettingsCollapseMisc . LaunchMobileMode = value ;
510511 }
511512 #endregion
Original file line number Diff line number Diff line change 133133 <CheckBox x : Name =" MobileModeToggle"
134134 HorizontalAlignment =" Left"
135135 VerticalAlignment =" Center"
136- IsChecked =" {x:Bind IsMobileMode, Mode=TwoWay}" >
136+ IsChecked =" {x:Bind IsMobileMode, Mode=TwoWay}"
137+ IsEnabled =" False"
138+ ToolTipService.ToolTip=" {x:Bind helper:Locale.Lang._Misc.Generic_GameFeatureDeprecation}" >
137139 <TextBlock Text =" {x:Bind helper:Locale.Lang._GameSettingsPage.MobileLayout}"
138140 TextWrapping =" Wrap" />
139141 </CheckBox >
Original file line number Diff line number Diff line change 133133 HorizontalAlignment =" Left"
134134 VerticalAlignment =" Center"
135135 IsChecked =" {x:Bind IsMobileMode, Mode=TwoWay}"
136+ IsEnabled =" False"
136137 ToolTipService.ToolTip=" {x:Bind helper:Locale.Lang._Misc.Generic_GameFeatureDeprecation}" >
137138 <TextBlock x : Name =" MobileModeToggleText"
138139 TextWrapping =" Wrap" />
Original file line number Diff line number Diff line change 164164 VerticalAlignment =" Center"
165165 IsChecked =" {x:Bind IsMobileMode, Mode=TwoWay}"
166166 IsEnabled =" False"
167+ ToolTipService.ToolTip=" {x:Bind helper:Locale.Lang._Misc.Generic_GameFeatureDeprecation}"
167168 Visibility =" Collapsed" >
168169 <TextBlock Text =" {x:Bind helper:Locale.Lang._GameSettingsPage.MobileLayout}"
169170 TextWrapping =" Wrap" />
Original file line number Diff line number Diff line change @@ -293,7 +293,10 @@ private string GetLaunchArguments(IGameSettingsUniversal _Settings)
293293 }
294294
295295 // Enable mobile mode
296- if ( _Settings . SettingsCollapseMisc . LaunchMobileMode )
296+ //if (_Settings.SettingsCollapseMisc.LaunchMobileMode)
297+ if ( false ) // Force disable Mobile mode due to reported bannable offense in GI. Thank you HoYo.
298+ // Added pragma in-case this will be reused in the future.
299+ #pragma warning disable CS0162 // Unreachable code detected
297300 {
298301 const string regLoc = GameSettings . StarRail . Model . ValueName ;
299302 var regRoot = GameSettings . Base . SettingsBase . RegistryRoot ;
@@ -318,6 +321,7 @@ private string GetLaunchArguments(IGameSettingsUniversal _Settings)
318321 LogType . Error , true ) ;
319322 }
320323 }
324+ #pragma warning restore CS0162 // Unreachable code detected
321325
322326 Size screenSize = _Settings . SettingsScreen . sizeRes ;
323327
@@ -349,8 +353,13 @@ private string GetLaunchArguments(IGameSettingsUniversal _Settings)
349353 }
350354
351355 // Enable mobile mode
352- if ( _Settings . SettingsCollapseMisc . LaunchMobileMode )
356+ // Enable mobile mode
357+ //if (_Settings.SettingsCollapseMisc.LaunchMobileMode)
358+ if ( false ) // Force disable Mobile mode due to reported bannable offense in GI. Thank you HoYo.
359+ // Added pragma in-case this will be reused in the future.
360+ #pragma warning disable CS0162 // Unreachable code detected
353361 parameter . Append ( "use_mobile_platform -is_cloud 1 -platform_type CLOUD_THIRD_PARTY_MOBILE " ) ;
362+ #pragma warning enable CS0162 // Unreachable code detected
354363
355364 Size screenSize = _Settings . SettingsScreen . sizeRes ;
356365
You can’t perform that action at this time.
0 commit comments