Add system setting to mirror bluetooth pairing database to sd card (#1787)
* ams_mitm: add ability to mirror bluetooth device pairing database to sd card via a system setting

* ams_mitm: address requested stylistic changes

* ams_mitm: make use of R_SUCCEED macro

* ams_mitm: use settings::BluetoothDevicesSettings instead of libnx type

* ams_mitm: fix logic error when truncating pairing database on read

* Update .ini comment

* ams_mitm: missing R_TRY around call to fs::FlushFile

* stratosphere: remove union from BluetoothDevicesSettings type

---------

Co-authored-by: ndeadly <24677491+ndeadly@users.noreply.github.com>
1 parent 61e3f0b commit bd9d8fff467f9d74c72ee7b95f72e1fbc43fa770
@ndeadly ndeadly authored on 10 Mar 2023
GitHub committed on 10 Mar 2023
Showing 7 changed files
View
config_templates/system_settings.ini
View
libraries/libstratosphere/include/stratosphere/settings/settings_types.hpp
View
stratosphere/ams_mitm/source/set_mitm/setsys_mitm_service.cpp
View
stratosphere/ams_mitm/source/set_mitm/setsys_mitm_service.hpp
View
stratosphere/ams_mitm/source/set_mitm/setsys_shim.c 0 → 100644
View
stratosphere/ams_mitm/source/set_mitm/setsys_shim.h 0 → 100644
View
stratosphere/ams_mitm/source/set_mitm/settings_sd_kvs.cpp