mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Some logging changes for Uplay
This is the last change that fixes the broken Uplay parsing part of #47.
This commit is contained in:
parent
f4bc6077e9
commit
b5e84cf6a8
@ -792,9 +792,16 @@ namespace DisplayMagician.GameLibraries
|
||||
catch (Exception ex)
|
||||
{
|
||||
// If we get an error processing the game YAML, lets try and skip this game and try the next one. It might work!
|
||||
logger.Error($"UplayLibrary/LoadInstalledGames: Problem deserialising the YAML embedded in the Uplay configuration file {uplayConfigFilePath}. Cannot process this games!");
|
||||
if (item.GameInfo.StartsWith("root:"))
|
||||
{
|
||||
logger.Warn($"UplayLibrary/LoadInstalledGames: Problem deserialising the YAML embedded in the Uplay configuration file {uplayConfigFilePath}. Cannot process this Uplay game! (Uplay ID:{item.UplayId}): {item.GameInfo}");
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.Trace($"UplayLibrary/LoadInstalledGames: This Uplay entry (Uplay ID:{item.UplayId}) in the Uplay configuration file {uplayConfigFilePath} is not a YAML config so skipping: {item.GameInfo}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -802,7 +809,7 @@ namespace DisplayMagician.GameLibraries
|
||||
catch (Exception ex)
|
||||
{
|
||||
// We can't do anything if we hit here.
|
||||
logger.Error($"UplayLibrary/LoadInstalledGames: Problem deserialising the protobuf Uplay configuration file {uplayConfigFilePath}. Cannot process any games!");
|
||||
logger.Error($"UplayLibrary/LoadInstalledGames: Problem deserialising the protobuf Uplay configuration file {uplayConfigFilePath}. Cannot process any Uplay games!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ using System.Resources;
|
||||
[assembly: Guid("e4ceaf5e-ad01-4695-b179-31168eb74c48")]
|
||||
|
||||
// Version information
|
||||
[assembly: AssemblyVersion("2.0.1.125")]
|
||||
[assembly: AssemblyFileVersion("2.0.1.125")]
|
||||
[assembly: AssemblyVersion("2.0.1.127")]
|
||||
[assembly: AssemblyFileVersion("2.0.1.127")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en" )]
|
||||
[assembly: CLSCompliant(true)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user