@@ -283,6 +283,7 @@ bool GameList::GetExeListEntry(const char* path, GameListEntry* entry)
283
283
entry->total_size = ZeroExtend64 (file_size);
284
284
entry->last_modified_time = ffd.ModificationTime .AsUnixTimestamp ();
285
285
entry->type = GameListEntryType::PSExe;
286
+ entry->compatibility_rating = GameListCompatibilityRating::Unknown;
286
287
287
288
return true ;
288
289
}
@@ -306,6 +307,7 @@ bool GameList::GetGameListEntry(const std::string& path, GameListEntry* entry)
306
307
entry->region = region;
307
308
entry->total_size = static_cast <u64 >(CDImage::RAW_SECTOR_SIZE) * static_cast <u64 >(cdi->GetLBACount ());
308
309
entry->type = GameListEntryType::Disc;
310
+ entry->compatibility_rating = GameListCompatibilityRating::Unknown;
309
311
cdi.reset ();
310
312
311
313
if (entry->code .empty ())
@@ -332,13 +334,9 @@ bool GameList::GetGameListEntry(const std::string& path, GameListEntry* entry)
332
334
333
335
const GameListCompatibilityEntry* compatibility_entry = GetCompatibilityEntryForCode (entry->code );
334
336
if (compatibility_entry)
335
- {
336
337
entry->compatibility_rating = compatibility_entry->compatibility_rating ;
337
- }
338
338
else
339
- {
340
339
Log_WarningPrintf (" '%s' (%s) not found in compatibility list" , entry->code .c_str (), entry->title .c_str ());
341
- }
342
340
}
343
341
344
342
FILESYSTEM_STAT_DATA ffd;
@@ -1161,7 +1159,7 @@ std::string GameList::ExportCompatibilityEntry(const GameListCompatibilityEntry*
1161
1159
InitElementForCompatibilityEntry (&doc, entry_elem, entry);
1162
1160
1163
1161
tinyxml2::XMLPrinter printer;
1164
- // doc.Print(&printer);
1162
+ // doc.Print(&printer);
1165
1163
entry_elem->Accept (&printer);
1166
1164
return std::string (printer.CStr (), printer.CStrSize ());
1167
1165
}
0 commit comments