1
2
3
4
5
6
7
8
9
10
11
use crate::error::CobbleResult;
use crate::minecraft::{load_screenshots, Screenshot};
use crate::Instance;

impl Instance {
    /// Loads all screenshots from this instance.
    #[cfg_attr(doc_cfg, doc(cfg(feature = "screenshots")))]
    pub async fn load_screenshots(&self) -> CobbleResult<Vec<Screenshot>> {
        load_screenshots(self.dot_minecraft_path()).await
    }
}