mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-24 18:23:03 -03:00
Merge branch 'master' into master
This commit is contained in:
commit
2666a15ffb
2 changed files with 3439 additions and 3443 deletions
File diff suppressed because it is too large
Load diff
|
@ -36,19 +36,15 @@ namespace Ryujinx.Ava.Utilities.Compat
|
||||||
if (row.ColCount != header.ColNames.Count)
|
if (row.ColCount != header.ColNames.Count)
|
||||||
throw new InvalidDataException($"CSV row {row.RowIndex} ({row.ToString()}) has mismatched column count");
|
throw new InvalidDataException($"CSV row {row.RowIndex} ({row.ToString()}) has mismatched column count");
|
||||||
|
|
||||||
var titleIdRow = ColStr(row[header.IndexOf("\"extracted_game_id\"")]);
|
var titleIdRow = ColStr(row[header.IndexOf("\"title_id\"")]);
|
||||||
TitleId = !string.IsNullOrEmpty(titleIdRow)
|
TitleId = !string.IsNullOrEmpty(titleIdRow)
|
||||||
? titleIdRow
|
? titleIdRow
|
||||||
: default(Optional<string>);
|
: default(Optional<string>);
|
||||||
|
|
||||||
|
GameName = ColStr(row[header.IndexOf("\"game_name\"")]).Trim().Trim('"');
|
||||||
|
|
||||||
var issueTitleRow = ColStr(row[header.IndexOf("\"issue_title\"")]);
|
IssueLabels = ColStr(row[header.IndexOf("\"labels\"")]).Split(';');
|
||||||
if (TitleId.HasValue)
|
Status = ColStr(row[header.IndexOf("\"status\"")]).ToLower() switch
|
||||||
issueTitleRow = issueTitleRow.ReplaceIgnoreCase($" - {TitleId}", string.Empty);
|
|
||||||
|
|
||||||
GameName = issueTitleRow.Trim().Trim('"');
|
|
||||||
|
|
||||||
IssueLabels = ColStr(row[header.IndexOf("\"issue_labels\"")]).Split(';');
|
|
||||||
Status = ColStr(row[header.IndexOf("\"extracted_status\"")]).ToLower() switch
|
|
||||||
{
|
{
|
||||||
"playable" => LocaleKeys.CompatibilityListPlayable,
|
"playable" => LocaleKeys.CompatibilityListPlayable,
|
||||||
"ingame" => LocaleKeys.CompatibilityListIngame,
|
"ingame" => LocaleKeys.CompatibilityListIngame,
|
||||||
|
@ -58,7 +54,7 @@ namespace Ryujinx.Ava.Utilities.Compat
|
||||||
_ => null
|
_ => null
|
||||||
};
|
};
|
||||||
|
|
||||||
if (DateTime.TryParse(ColStr(row[header.IndexOf("\"last_event_date\"")]), out var dt))
|
if (DateTime.TryParse(ColStr(row[header.IndexOf("\"last_updated\"")]), out var dt))
|
||||||
LastEvent = dt;
|
LastEvent = dt;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue