remove some unused options

This commit is contained in:
qimiko committed 2024-05-19 02:42:33 -07:00
1 parent 62568198a1
commit 61d754bdd0
4 files changed
+1 -16

No files matched your search

@@ -151,16 +151,8 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
private fun handleGeodeException(e: Throwable) { private fun handleGeodeException(e: Throwable) {
e.printStackTrace() e.printStackTrace()
val ignoreFailure = PreferenceUtils.get(this)
.getBoolean(PreferenceUtils.Key.IGNORE_LOAD_FAILURE)
if (ignoreFailure) {
Log.w("GeodeLauncher", "could not load Geode object!")
} else {
throw e throw e
} }
}
private fun setupRedirection(packageInfo: PackageInfo) { private fun setupRedirection(packageInfo: PackageInfo) {
try { try {
@@ -355,7 +355,7 @@ fun OptionsCardPreview() {
SettingsCard( SettingsCard(
title = "Load files from /test", title = "Load files from /test",
description = "Very long testing description goes here. It is incredibly long, it should wrap onto a new line.", description = "Very long testing description goes here. It is incredibly long, it should wrap onto a new line.",
preferenceKey = PreferenceUtils.Key.LOAD_TESTING preferenceKey = PreferenceUtils.Key.BLACK_BACKGROUND
) )
SettingsCard( SettingsCard(
title = "Testing option 2", title = "Testing option 2",
@@ -123,7 +123,6 @@ class PreferenceUtils(private val sharedPreferences: SharedPreferences) {
} }
enum class Key { enum class Key {
LOAD_TESTING,
LOAD_AUTOMATICALLY, LOAD_AUTOMATICALLY,
UPDATE_AUTOMATICALLY, UPDATE_AUTOMATICALLY,
RELEASE_CHANNEL, RELEASE_CHANNEL,
@@ -135,7 +134,6 @@ class PreferenceUtils(private val sharedPreferences: SharedPreferences) {
LAST_DISMISSED_UPDATE, LAST_DISMISSED_UPDATE,
DISMISSED_GJ_UPDATE, DISMISSED_GJ_UPDATE,
LAUNCH_ARGUMENTS, LAUNCH_ARGUMENTS,
IGNORE_LOAD_FAILURE,
LIMIT_ASPECT_RATIO, LIMIT_ASPECT_RATIO,
DISPLAY_MODE DISPLAY_MODE
} }
@@ -155,7 +153,6 @@ class PreferenceUtils(private val sharedPreferences: SharedPreferences) {
private fun keyToName(key: Key): String { private fun keyToName(key: Key): String {
return when (key) { return when (key) {
Key.LOAD_TESTING -> "PreferenceLoadTesting"
Key.LOAD_AUTOMATICALLY -> "PreferenceLoadAutomatically" Key.LOAD_AUTOMATICALLY -> "PreferenceLoadAutomatically"
Key.UPDATE_AUTOMATICALLY -> "PreferenceUpdateAutomatically" Key.UPDATE_AUTOMATICALLY -> "PreferenceUpdateAutomatically"
Key.RELEASE_CHANNEL -> "PreferenceReleaseChannel" Key.RELEASE_CHANNEL -> "PreferenceReleaseChannel"
@@ -167,7 +164,6 @@ class PreferenceUtils(private val sharedPreferences: SharedPreferences) {
Key.LAST_DISMISSED_UPDATE -> "PreferenceLastDismissedUpdate" Key.LAST_DISMISSED_UPDATE -> "PreferenceLastDismissedUpdate"
Key.DISMISSED_GJ_UPDATE -> "PreferenceDismissedGJUpdate" Key.DISMISSED_GJ_UPDATE -> "PreferenceDismissedGJUpdate"
Key.LAUNCH_ARGUMENTS -> "PreferenceLaunchArguments" Key.LAUNCH_ARGUMENTS -> "PreferenceLaunchArguments"
Key.IGNORE_LOAD_FAILURE -> "PreferenceIgnoreLoadFailure"
Key.LIMIT_ASPECT_RATIO -> "PreferenceLimitAspectRatio" Key.LIMIT_ASPECT_RATIO -> "PreferenceLimitAspectRatio"
Key.DISPLAY_MODE -> "PreferenceDisplayMode" Key.DISPLAY_MODE -> "PreferenceDisplayMode"
} }
-3
View File
@@ -11,7 +11,6 @@
<string name="launcher_logo_alt">geode logo</string> <string name="launcher_logo_alt">geode logo</string>
<string name="launcher_launch_icon_alt">play icon</string> <string name="launcher_launch_icon_alt">play icon</string>
<string name="launcher_download_icon_alt">download icon</string> <string name="launcher_download_icon_alt">download icon</string>
<string name="launcher_purchase_reminder">If you enjoy the game, please consider purchasing it for a smoother launcher experience.</string>
<string name="launcher_download_game">Download Game</string> <string name="launcher_download_game">Download Game</string>
<string name="launcher_download_32bit">Download the 32-bit version of launcher.</string> <string name="launcher_download_32bit">Download the 32-bit version of launcher.</string>
<string name="launcher_download_universal">Download the non 32-bit version of launcher.</string> <string name="launcher_download_universal">Download the non 32-bit version of launcher.</string>
@@ -89,7 +88,6 @@
<string name="text_copied">Copied to clipboard.</string> <string name="text_copied">Copied to clipboard.</string>
<string name="preference_category_testing">General</string> <string name="preference_category_testing">General</string>
<string name="preference_load_testing_name">Load files from /test</string>
<string name="preference_load_automatically_name">Automatically launch</string> <string name="preference_load_automatically_name">Automatically launch</string>
<string name="preference_load_automatically_description">Launches the game after a short delay.</string> <string name="preference_load_automatically_description">Launches the game after a short delay.</string>
<string name="preferences_copy_external_button">Copy external files directory</string> <string name="preferences_copy_external_button">Copy external files directory</string>
@@ -126,7 +124,6 @@
<string name="preference_category_developer">Developer</string> <string name="preference_category_developer">Developer</string>
<string name="preference_launch_arguments_name">Launch arguments</string> <string name="preference_launch_arguments_name">Launch arguments</string>
<string name="preference_launch_arguments_set_title">Set launch arguments</string> <string name="preference_launch_arguments_set_title">Set launch arguments</string>
<string name="preference_ignore_load_failure_name">Ignore loader errors</string>
<string name="preference_text_clear">Clear</string> <string name="preference_text_clear">Clear</string>
<!-- ApplicationLogsActivity strings --> <!-- ApplicationLogsActivity strings -->