Permalink
Browse files

Fix for ScummVM games casing null exceptions, fixes #83

  • Loading branch information...
sanmadjack committed Jun 17, 2013
1 parent 69aa560 commit 73405898bd8786367f872ad65fc2c7f352ae6fd7
Showing with 6 additions and 3 deletions.
  1. +6 −3 MASGAU.Common/Game/GameEntry.cs
  2. BIN MASGAU.NET.suo
@@ -319,18 +319,21 @@ public class GameEntry : AModelItem<GameID> {
public DetectedFiles Saves {
get {
DetectedFiles files = new DetectedFiles();
if (id.Name == "BeneathASteelSky") {
Console.Out.WriteLine();
}
foreach (DetectedLocationPathHolder location in DetectedLocations) {
foreach (FileType type in version.FileTypes.Values) {
files.AddFiles(type, location);
}
foreach (APlayStationID id in version.PlayStationIDs) {
Include save = id.convertToInclude();
foreach (APlayStationID pid in version.PlayStationIDs) {
Include save = pid.convertToInclude();
files.AddFiles(save, location);
}
foreach (ScummVM scumm in version.ScummVMs) {
Include save = new Include(scumm.Name + "*.cfg", null, "Settings");
files.AddFiles(save, location);
save = new Include(scumm.Name + "*.???", null, null);
save = new Include(scumm.Name + "*.???", null, "");
files.AddFiles(save, location, new System.Text.RegularExpressions.Regex(".*[.][0-9]{3}$"));
}
}
View
BIN +12.5 KB (100%) MASGAU.NET.suo
Binary file not shown.

0 comments on commit 7340589

Please sign in to comment.