game_scanner/amazon/
mod.rs1#[cfg(not(target_os = "windows"))]
2use std::path::PathBuf;
3
4#[cfg(not(target_os = "windows"))]
5use crate::{
6 error::{Error, ErrorKind, Result},
7 prelude::Game,
8};
9
10#[cfg(target_os = "windows")]
11pub use self::windows::*;
12
13#[cfg(target_os = "windows")]
14mod sqlite;
15#[cfg(target_os = "windows")]
16mod windows;
17
18#[cfg(not(target_os = "windows"))]
19pub fn executable() -> Result<PathBuf> {
20 return Err(Error::new(
21 ErrorKind::InvalidLauncher,
22 "launcher not supported",
23 ));
24}
25
26#[cfg(not(target_os = "windows"))]
27pub fn games() -> Result<Vec<Game>> {
28 Err(Error::new(
29 ErrorKind::InvalidLauncher,
30 "launcher not supported",
31 ))
32}
33
34#[cfg(not(target_os = "windows"))]
35pub fn find(_id: &str) -> Result<Game> {
36 Err(Error::new(
37 ErrorKind::InvalidLauncher,
38 "launcher not supported",
39 ))
40}