citra-emu
/
citra-canary
Archived
1
0
Fork 0

citra_android: fix config is getting overwritten by default (#6408)

This commit is contained in:
hank121314 2023-04-06 00:51:05 +08:00 committed by GitHub
parent 7d64c654cc
commit 495e5dadd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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) {

View File

@ -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) {