mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
3.0.2.1
This commit is contained in:
parent
d85f16cda4
commit
8fe943e4a4
@ -1,5 +1,8 @@
|
||||
### Changelog
|
||||
|
||||
#### Version - 3.0.2.1 - 10/19/2022
|
||||
* HOTFIX: make game detection more safe against crashes
|
||||
|
||||
#### Version - 3.0.2.0 - 10/19/2022
|
||||
* Show Modlist readmes after install
|
||||
* Basic support for commandline options in the WPF app
|
||||
|
@ -139,34 +139,65 @@ public class GameLocator : IGameLocator
|
||||
{
|
||||
var metaData = game.MetaData();
|
||||
|
||||
foreach (var id in metaData.SteamIDs)
|
||||
try
|
||||
{
|
||||
if (!_steamGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
foreach (var id in metaData.SteamIDs)
|
||||
{
|
||||
if (!_steamGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var id in metaData.GOGIDs)
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (!_gogGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
_logger.LogInformation(ex, "During Steam detection");
|
||||
}
|
||||
|
||||
foreach (var id in metaData.EpicGameStoreIDs)
|
||||
|
||||
try
|
||||
{
|
||||
if (!_egsGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
foreach (var id in metaData.GOGIDs)
|
||||
{
|
||||
if (!_gogGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogInformation(ex, "During GOG detection");
|
||||
}
|
||||
|
||||
foreach (var id in metaData.OriginIDs)
|
||||
|
||||
try
|
||||
{
|
||||
if (!_originGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
foreach (var id in metaData.EpicGameStoreIDs)
|
||||
{
|
||||
if (!_egsGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogInformation(ex, "During Epic detection");
|
||||
}
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
foreach (var id in metaData.OriginIDs)
|
||||
{
|
||||
if (!_originGames.TryGetValue(id, out var found)) continue;
|
||||
path = found;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogInformation(ex, "During Origin Store detection");
|
||||
}
|
||||
|
||||
path = default;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user