mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-07 00:16:04 +00:00
Enable audio encryption unless on a slow CPU
This commit is contained in:
12
src/util.c
12
src/util.c
@@ -38,3 +38,15 @@ int blank_fb(char *path, bool clear) {
|
||||
} else
|
||||
return -1;
|
||||
}
|
||||
|
||||
int read_file(char *path, char* output, int output_len) {
|
||||
int fd = open(path, O_RDONLY);
|
||||
|
||||
if(fd >= 0) {
|
||||
output_len = read(fd, output, output_len);
|
||||
close(fd);
|
||||
return output_len;
|
||||
} else
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user