mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 02:45:29 -04:00
Remove removed titles from title_hash
This commit is contained in:
parent
cd48b45f11
commit
8c90b46114
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user