mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-24 00:03:14 -05:00
Remove removed titles from title_hash
This commit is contained in:
@@ -159,7 +159,9 @@ class Library
|
||||
|
||||
@title_ids.select! do |title_id|
|
||||
title = @title_hash[title_id]
|
||||
title.examine
|
||||
existence = title.examine
|
||||
@title_hash.delete title_id unless existence
|
||||
existence
|
||||
end
|
||||
remained_title_dirs = @title_ids.map { |id| title_hash[id].dir }
|
||||
|
||||
|
||||
@@ -95,7 +95,9 @@ class Title
|
||||
previous_titles_size = @title_ids.size
|
||||
@title_ids.select! do |title_id|
|
||||
title = Library.default.get_title! title_id
|
||||
title.examine cache
|
||||
existence = title.examine cache
|
||||
Library.default.title_hash.delete title_id unless existence
|
||||
existence
|
||||
end
|
||||
remained_title_dirs = @title_ids.map do |title_id|
|
||||
title = Library.default.get_title! title_id
|
||||
|
||||
Reference in New Issue
Block a user