You've already forked AstralRinth
Include crash reports and attempt to order by age. (#1178)
* Include crash reports and attempt to order by age. * Do all sorting within rust. * Remove excess debug. * Remove new once_cell dep. * Use EPOCH as fallback instead of now() * Fix prettier lint warnings.
This commit is contained in:
@@ -165,6 +165,14 @@ impl DirectoryInfo {
|
||||
) -> crate::Result<PathBuf> {
|
||||
Ok(profile_id.get_full_path().await?.join("logs"))
|
||||
}
|
||||
|
||||
/// Gets the crash reports dir for a given profile
|
||||
#[inline]
|
||||
pub async fn crash_reports_dir(
|
||||
profile_id: &ProfilePathId,
|
||||
) -> crate::Result<PathBuf> {
|
||||
Ok(profile_id.get_full_path().await?.join("crash-reports"))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn launcher_logs_dir() -> Option<PathBuf> {
|
||||
|
||||
Reference in New Issue
Block a user