mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
citra_android: fix config is getting overwritten by default (#6408)
This commit is contained in:
parent
7d64c654cc
commit
495e5dadd7
3 changed files with 3 additions and 3 deletions
|
@ -233,7 +233,7 @@ public final class SettingsFile {
|
|||
writeSection(writer, section);
|
||||
}
|
||||
inputStream.close();
|
||||
OutputStream outputStream = context.getContentResolver().openOutputStream(ini.getUri());
|
||||
OutputStream outputStream = context.getContentResolver().openOutputStream(ini.getUri(), "wt");
|
||||
writer.store(outputStream);
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
|
|
|
@ -144,7 +144,7 @@ public class DocumentsTree {
|
|||
document.isDirectory = destination.isDirectory();
|
||||
document.loaded = true;
|
||||
InputStream input = context.getContentResolver().openInputStream(sourceNode.uri);
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri());
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri(), "wt");
|
||||
byte[] buffer = new byte[1024];
|
||||
int len;
|
||||
while ((len = input.read(buffer)) != -1) {
|
||||
|
|
|
@ -273,7 +273,7 @@ public class FileUtil {
|
|||
}
|
||||
if (destination == null) return false;
|
||||
InputStream input = context.getContentResolver().openInputStream(sourceUri);
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri());
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri(), "wt");
|
||||
byte[] buffer = new byte[1024];
|
||||
int len;
|
||||
while ((len = input.read(buffer)) != -1) {
|
||||
|
|
Loading…
Reference in a new issue