fixes (the last)

This commit is contained in:
2025-08-18 22:10:27 +02:00
parent 0f2c0e511f
commit 9a14571c31
4 changed files with 65 additions and 8 deletions

View File

@@ -378,6 +378,13 @@ func (l Service) Repository() repository.Repository {
return l.repo
}
func (l Service) ReloadCache(gameID string) error {
if er, ok := l.repo.(*repository.EagerRepository); ok {
return er.ReloadMetadata(repository.NewGameIdentifier(gameID))
}
return nil
}
func (l Service) apply(src, dst string) error {
if err := os.RemoveAll(dst); err != nil {
return fmt.Errorf("failed to remove old save: %w", err)