mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
cleanup (#764)
This commit is contained in:
1 parent
4163b31b02
commit
83ec5708ed
852 files changed
+4844
-46144
No files matched your search
@@ -119,7 +119,7 @@ index 0c539f1..50fdd21 100644
|
||||
.unwrap_or_else(|| String::from("en-US"));
|
||||
}
|
||||
+
|
||||
+/// A launcher may restrict Galaxy to explicitly enabled SDK clients in its private policy file.
|
||||
+
|
||||
+pub fn client_allowed(client_id: &str) -> bool {
|
||||
+ let Ok(path) = std::env::var("COMET_ALLOWED_CLIENTS") else { return true; };
|
||||
+ std::fs::read(path).ok().and_then(|data| serde_json::from_slice::<Vec<String>>(&data).ok())
|
||||
|
||||
Reference in new issue
Block a user