This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-13 21:27:42 -04:00
1 parent 4163b31b02
commit 83ec5708ed
852 files changed
+4844 -46144

No files matched your search

+1 -1
View File
@@ -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())