| 148 | } |
| 149 | |
| 150 | bool PersistentDataItem::isValid() const |
| 151 | { |
| 152 | if (data == nullptr) |
| 153 | return false; |
| 154 | |
| 155 | CoreSuspender suspend; |
| 156 | |
| 157 | return entry_cache.contains(data->entry_id) && entry_cache.at(data->entry_id) == data; |
| 158 | } |
| 159 | |
| 160 | int PersistentDataItem::fake_df_id() { |
| 161 | if (!isValid()) |