mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-20 01:53:35 +02:00
wire old backup migration into startup
This commit is contained in:
@@ -100,7 +100,6 @@ Planned changes for upcoming releases, ordered by priority.
|
||||
|--------|------|
|
||||
| v0.4.0 | ✅ All v0.4.0 items completed — released 2026-06-03 |
|
||||
| v0.5.0 | CLI flags: `--backup`, `--extract <archive>`, `--inspect <savefile>` (`.sav`/`.bak`), `--list` |
|
||||
| v0.5.0 | Wire migration notification into startup (user dialog + log, old files untouched) |
|
||||
| v0.5.0 | Move existing `transaction.log` into `logs/` directory on first launch |
|
||||
|
||||
Items may shift between releases depending on feedback and urgency.
|
||||
|
||||
@@ -161,6 +161,13 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>) -> Result<()> {
|
||||
guard::log_action("MIGRATE", "old config.ini removed", "SAFE", &app.log_path)?;
|
||||
}
|
||||
|
||||
// Migrate old directory-tree backups to tar.gz
|
||||
if let Ok(n) = ops::migrate_old_backups() {
|
||||
if n > 0 {
|
||||
guard::log_action("MIGRATE", &format!("{n} old backup(s) migrated to tar.gz, originals in NotAlterra_Backups/ untouched"), "OK", &app.log_path)?;
|
||||
}
|
||||
}
|
||||
|
||||
// Quick check of common save locations (current user only, no profile scans)
|
||||
if app.save_folder.is_none() {
|
||||
if let Some(path) = discovery::quick_discover() {
|
||||
|
||||
Reference in New Issue
Block a user