mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-01 08:22:53 +00:00
Merge pull request #11616 from t895/save-error
android: Correctly reload settings file during reset
This commit is contained in:
commit
18b240c071
|
@ -21,6 +21,7 @@ import androidx.navigation.navArgs
|
|||
import com.google.android.material.color.MaterialColors
|
||||
import kotlinx.coroutines.flow.collectLatest
|
||||
import kotlinx.coroutines.launch
|
||||
import org.yuzu.yuzu_emu.NativeLibrary
|
||||
import java.io.IOException
|
||||
import org.yuzu.yuzu_emu.R
|
||||
import org.yuzu.yuzu_emu.databinding.ActivitySettingsBinding
|
||||
|
@ -168,7 +169,7 @@ class SettingsActivity : AppCompatActivity() {
|
|||
if (!settingsFile.delete()) {
|
||||
throw IOException("Failed to delete $settingsFile")
|
||||
}
|
||||
Settings.settingsList.forEach { it.reset() }
|
||||
NativeLibrary.reloadSettings()
|
||||
|
||||
Toast.makeText(
|
||||
applicationContext,
|
||||
|
|
Loading…
Reference in a new issue