mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
add another case of save data issues
This commit is contained in:
@@ -239,6 +239,7 @@ internal partial class LogParser
|
||||
["undub"] = UndubFlag(),
|
||||
["Input: Pad"] = InputDeviceGamepad(),
|
||||
["SDL: Found game controller"] = SdlControllerName(),
|
||||
["cellSaveData: cellSaveDataGetListItem"] = SaveDataBeforeSegfault(),
|
||||
["SYS: Failed to remove save data"] = FailedToRemoveSaveData(),
|
||||
["Trophy: Failed to remove"] = FailedToRemoveTrophy(),
|
||||
["Failed to install trophy"] = FailedToInstallTrophy(),
|
||||
|
||||
@@ -359,4 +359,11 @@ internal partial class LogParser
|
||||
private static partial Regex FailedToRemoveTrophy();
|
||||
[GeneratedRegex(@"Failed to install .+ '.*(?<bad_trophy_data_path>/dev_hdd0/.+)' \(.+\)\r?$", DefaultOptions)]
|
||||
private static partial Regex FailedToInstallTrophy();
|
||||
[GeneratedRegex(
|
||||
@"cellSaveData:[^\n]+dirName=“(?<save_dir_before_segfault>\w+)”[^\n]+\r?\n"+
|
||||
@"[^\n]+SYS:\s*\n"+
|
||||
"Segfault",
|
||||
DefaultOptions
|
||||
)]
|
||||
private static partial Regex SaveDataBeforeSegfault();
|
||||
}
|
||||
@@ -526,7 +526,7 @@ internal static partial class LogParserResult
|
||||
private static void BuildFatalErrorSection(DiscordEmbedBuilder builder, NameValueCollection items, NameUniqueObjectCollection<string> multiItems, List<string> notes)
|
||||
{
|
||||
var win32ErrorCodes = new HashSet<int>();
|
||||
if (multiItems["fatal_error"] is {Length: > 0} fatalErrors)
|
||||
if (multiItems["fatal_error"] is {Length: >0} fatalErrors)
|
||||
{
|
||||
var contexts = multiItems["fatal_error_context"];
|
||||
var reducedFatalErrors = GroupSimilar(fatalErrors);
|
||||
@@ -646,7 +646,7 @@ internal static partial class LogParserResult
|
||||
notes.Add("⚠️ PPU desync detected, most likely cause is corrupted save data");
|
||||
}*/
|
||||
}
|
||||
if (multiItems["bad_save_data_path"] is { Length: > 0 } badSavePaths)
|
||||
if (multiItems["bad_save_data_path"] is { Length: >0 } badSavePaths)
|
||||
{
|
||||
if (badSavePaths is [string singlePath])
|
||||
notes.Add($"❌ Corrupted save data `{singlePath}`");
|
||||
@@ -666,7 +666,7 @@ internal static partial class LogParserResult
|
||||
);
|
||||
}
|
||||
}
|
||||
if (multiItems["bad_trophy_data_path"] is { Length: > 0 } badTrophyPaths)
|
||||
if (multiItems["bad_trophy_data_path"] is { Length: >0 } badTrophyPaths)
|
||||
{
|
||||
if (badTrophyPaths is [string singlePath])
|
||||
notes.Add($"❌ Corrupted trophy data `{singlePath}`");
|
||||
@@ -687,6 +687,8 @@ internal static partial class LogParserResult
|
||||
}
|
||||
|
||||
}
|
||||
if (items["save_dir_before_segfault"] is { Length: > 0 } saveDirBeforeSegfault)
|
||||
notes.Add($"❌ Potential save data corruption in `{saveDirBeforeSegfault}`");
|
||||
if (items["os_type"] == "Windows")
|
||||
foreach (var code in win32ErrorCodes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user