feat: Add detection for openal issues on linux
Signed-off-by: Rahul <notlutitious@gmail.com>
This commit is contained in:
parent
37bdad0368
commit
4605efd53c
1 changed files with 18 additions and 0 deletions
|
@ -33,6 +33,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
|
||||||
intermediary_mappings,
|
intermediary_mappings,
|
||||||
old_forge_new_java,
|
old_forge_new_java,
|
||||||
checksum_mismatch,
|
checksum_mismatch,
|
||||||
|
linux_openal,
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
||||||
|
@ -413,3 +414,20 @@ fn checksum_mismatch(log: &str) -> Issue {
|
||||||
let found = log.contains("Checksum mismatch, download is bad.");
|
let found = log.contains("Checksum mismatch, download is bad.");
|
||||||
found.then_some(issue)
|
found.then_some(issue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn linux_openal(log: &str) -> Issue {
|
||||||
|
let issue = (
|
||||||
|
"Missing .alsoftrc".to_string(),
|
||||||
|
"OpenAL is missing the configuration file.
|
||||||
|
To fix this, create a file named `.alsoftrc` in your home directory with the following content:
|
||||||
|
```
|
||||||
|
drivers=alsa
|
||||||
|
hrtf=true
|
||||||
|
```"
|
||||||
|
.to_string(),
|
||||||
|
);
|
||||||
|
|
||||||
|
let found = log.contains("Failed to get OpenAL")
|
||||||
|
|| (log.contains("Problematic frame") && log.contains("libopenal.so"));
|
||||||
|
found.then_some(issue)
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue