fix: add aime.txt check to the importer
This commit is contained in:
@ -43,7 +43,11 @@ impl Segatools {
|
|||||||
if let Some(aime_path) = s.get("aimePath") {
|
if let Some(aime_path) = s.get("aimePath") {
|
||||||
if let Some(game_dir) = self.target.parent() {
|
if let Some(game_dir) = self.target.parent() {
|
||||||
let target = game_dir.join(aime_path);
|
let target = game_dir.join(aime_path);
|
||||||
std::fs::copy(target, config_dir.as_ref().join("aime.txt"))?;
|
if target.exists() {
|
||||||
|
std::fs::copy(target, config_dir.as_ref().join("aime.txt"))?;
|
||||||
|
} else {
|
||||||
|
log::warn!("aime.txt was configured in segatools.ini but it doesn't exist");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log::error!("profile doesn't have a game directory");
|
log::error!("profile doesn't have a game directory");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user