Rebranded default system settings

This commit is contained in:
OpenSauce04 2024-04-06 00:01:01 +01:00
parent d25d820e64
commit 127244a1d0
3 changed files with 9 additions and 9 deletions

View File

@ -221,12 +221,12 @@ class SettingsActivity : AppCompatActivity(), SettingsActivityView {
// Set default values for system config file // Set default values for system config file
SystemSaveGame.apply { SystemSaveGame.apply {
setUsername("CITRA") setUsername("LIME3DS")
setBirthday(3, 25) setBirthday(3, 4)
setSystemLanguage(1) setSystemLanguage(1)
setSoundOutputMode(1) setSoundOutputMode(1)
setCountryCode(49) setCountryCode(49)
setPlayCoins(42) setPlayCoins(300)
} }
showToastMessage(getString(R.string.settings_reset), true) showToastMessage(getString(R.string.settings_reset), true)

View File

@ -209,14 +209,14 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
override val section = null override val section = null
override val isRuntimeEditable = false override val isRuntimeEditable = false
override val valueAsString get() = string override val valueAsString get() = string
override val defaultValue = "CITRA" override val defaultValue = "LIME3DS"
} }
add( add(
StringInputSetting( StringInputSetting(
usernameSetting, usernameSetting,
R.string.username, R.string.username,
0, 0,
"CITRA", "LIME3DS",
10 10
) )
) )
@ -286,7 +286,7 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
override val section = null override val section = null
override val isRuntimeEditable = false override val isRuntimeEditable = false
override val valueAsString = int.toString() override val valueAsString = int.toString()
override val defaultValue = 42 override val defaultValue = 300
} }
add( add(
SliderSetting( SliderSetting(
@ -355,7 +355,7 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
override val section = null override val section = null
override val isRuntimeEditable = false override val isRuntimeEditable = false
override val valueAsString get() = short.toString() override val valueAsString get() = short.toString()
override val defaultValue: Short = 25 override val defaultValue: Short = 4
} }
val birthdayMonth = SystemSaveGame.getBirthday()[0] val birthdayMonth = SystemSaveGame.getBirthday()[0]
val daysInMonth = BirthdayMonth.getMonthFromCode(birthdayMonth)?.days ?: 31 val daysInMonth = BirthdayMonth.getMonthFromCode(birthdayMonth)?.days ?: 31

View File

@ -38,8 +38,8 @@ constexpr u8 DEFAULT_SOUND_OUTPUT_MODE = SOUND_STEREO;
// constants. // constants.
constexpr u64_le DEFAULT_CONSOLE_ID = 0; constexpr u64_le DEFAULT_CONSOLE_ID = 0;
constexpr u32_le DEFAULT_CONSOLE_RANDOM_NUMBER = 0; constexpr u32_le DEFAULT_CONSOLE_RANDOM_NUMBER = 0;
constexpr UsernameBlock DEFAULT_USERNAME{{u"CITRA"}, 0, 0}; constexpr UsernameBlock DEFAULT_USERNAME{{u"LIME3DS"}, 0, 0};
constexpr BirthdayBlock DEFAULT_BIRTHDAY{3, 25}; // March 25th, 2014 constexpr BirthdayBlock DEFAULT_BIRTHDAY{3, 4}; // March 4th, 2024
constexpr u8 DEFAULT_LANGUAGE = LANGUAGE_EN; constexpr u8 DEFAULT_LANGUAGE = LANGUAGE_EN;
constexpr ConsoleCountryInfo DEFAULT_COUNTRY_INFO{ constexpr ConsoleCountryInfo DEFAULT_COUNTRY_INFO{
{0, 0}, WASHINGTON_DC_STATE_ID, UNITED_STATES_COUNTRY_ID}; {0, 0}, WASHINGTON_DC_STATE_ID, UNITED_STATES_COUNTRY_ID};