mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 07:05:40 +00:00
Android: Add logging options to settings
This commit is contained in:
parent
e9dcf7fe33
commit
8b3db72677
|
@ -164,8 +164,6 @@ void AndroidHostInterface::LoadSettings()
|
|||
CommonHostInterface::LoadSettings(m_settings_interface);
|
||||
CommonHostInterface::FixIncompatibleSettings(false);
|
||||
CommonHostInterface::UpdateInputMap(m_settings_interface);
|
||||
g_settings.log_level = LOGLEVEL_INFO;
|
||||
g_settings.log_to_debug = true;
|
||||
}
|
||||
|
||||
void AndroidHostInterface::UpdateInputMap()
|
||||
|
@ -535,8 +533,6 @@ void AndroidHostInterface::ApplySettings(bool display_osd_messages)
|
|||
Settings old_settings = std::move(g_settings);
|
||||
CommonHostInterface::LoadSettings(m_settings_interface);
|
||||
CommonHostInterface::FixIncompatibleSettings(display_osd_messages);
|
||||
g_settings.log_level = LOGLEVEL_INFO;
|
||||
g_settings.log_to_debug = true;
|
||||
CheckForSettingsChanges(old_settings);
|
||||
}
|
||||
|
||||
|
|
|
@ -200,4 +200,28 @@
|
|||
<item>3072</item>
|
||||
<item>4096</item>
|
||||
</string-array>
|
||||
<string-array name="settings_log_level_entries">
|
||||
<item>None</item>
|
||||
<item>Error</item>
|
||||
<item>Warning</item>
|
||||
<item>Performance Warnings</item>
|
||||
<item>Success</item>
|
||||
<item>Information</item>
|
||||
<item>Developer</item>
|
||||
<item>Profile</item>
|
||||
<item>Debug</item>
|
||||
<item>Trace</item>
|
||||
</string-array>
|
||||
<string-array name="settings_log_level_values">
|
||||
<item>None</item>
|
||||
<item>Error</item>
|
||||
<item>Warning</item>
|
||||
<item>Perf</item>
|
||||
<item>Success</item>
|
||||
<item>Info</item>
|
||||
<item>Dev</item>
|
||||
<item>Profile</item>
|
||||
<item>Debug</item>
|
||||
<item>Trace</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
|
|
@ -355,6 +355,26 @@
|
|||
app:title="@string/settings_console_tty_output"
|
||||
app:defaultValue="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
<ListPreference
|
||||
app:key="Logging/LogLevel"
|
||||
app:title="Logging Level"
|
||||
app:defaultValue="Warning"
|
||||
app:entries="@array/settings_log_level_entries"
|
||||
app:entryValues="@array/settings_log_level_values"
|
||||
app:useSimpleSummaryProvider="true"
|
||||
app:iconSpaceReserved="false" />
|
||||
<SwitchPreferenceCompat
|
||||
app:key="Logging/LogToFile"
|
||||
app:title="Log To File"
|
||||
app:defaultValue="false"
|
||||
app:summary="Writes log messages to duckstation.log in your user directory. Only use for debugging as it slows down emulation."
|
||||
app:iconSpaceReserved="false"/>
|
||||
<SwitchPreferenceCompat
|
||||
app:key="Logging/LogToDebug"
|
||||
app:title="Log To Logcat"
|
||||
app:defaultValue="false"
|
||||
app:summary="Writes log messages to the Android message logger. Only useful when attached to a computer with adb."
|
||||
app:iconSpaceReserved="false" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
Loading…
Reference in a new issue