mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Add PS3 folder/file checks for detection (fixes #409)
This commit is contained in:
@@ -128,6 +128,7 @@
|
||||
- Add important Redumper note
|
||||
- Update to DIC 20220909
|
||||
- Possibly fix PIC parsing
|
||||
- Add PS3 folder/file checks for detection
|
||||
|
||||
### 2.3 (2022-02-05)
|
||||
- Start overhauling Redump information pulling, again
|
||||
|
||||
@@ -284,6 +284,18 @@ namespace MPF.Core.Data
|
||||
return RedumpSystem.SonyPlayStation;
|
||||
}
|
||||
|
||||
// Sony PlayStation 3
|
||||
try
|
||||
{
|
||||
if (Directory.Exists(Path.Combine(drivePath, "PS3_GAME"))
|
||||
|| Directory.Exists(Path.Combine(drivePath, "PS3_UPDATE"))
|
||||
|| File.Exists(Path.Combine(drivePath, "PS3_DISC.SFB")))
|
||||
{
|
||||
return RedumpSystem.MicrosoftXbox360;
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
// V.Tech V.Flash / V.Smile Pro
|
||||
if (File.Exists(Path.Combine(drivePath, "0SYSTEM")))
|
||||
{
|
||||
|
||||
@@ -566,9 +566,9 @@ namespace MPF.Library
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Information Output
|
||||
#region Information Output
|
||||
|
||||
/// <summary>
|
||||
/// Compress log files to save space
|
||||
@@ -1139,9 +1139,9 @@ namespace MPF.Library
|
||||
AddIfExists(output, key, string.Join(", ", value.Select(o => o.ToString())), indent);
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Normalization
|
||||
#region Normalization
|
||||
|
||||
/// <summary>
|
||||
/// Adjust the disc type based on size and layerbreak information
|
||||
@@ -1262,9 +1262,9 @@ namespace MPF.Library
|
||||
return (directory, filename);
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Web Calls
|
||||
#region Web Calls
|
||||
|
||||
/// <summary>
|
||||
/// Create a new SubmissionInfo object from a disc page
|
||||
@@ -1287,7 +1287,7 @@ namespace MPF.Library
|
||||
try
|
||||
{
|
||||
// Load the current disc page into an XML document
|
||||
XmlDocument redumpPage = new XmlDocument() {PreserveWhitespace = true};
|
||||
XmlDocument redumpPage = new XmlDocument() { PreserveWhitespace = true };
|
||||
redumpPage.LoadXml(discData);
|
||||
|
||||
// If the current page isn't valid, we can't parse it
|
||||
@@ -2044,9 +2044,9 @@ namespace MPF.Library
|
||||
return localCount == remoteCount;
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Helpers
|
||||
#region Helpers
|
||||
|
||||
/// <summary>
|
||||
/// Format a single site tag to string
|
||||
@@ -2250,7 +2250,7 @@ namespace MPF.Library
|
||||
sorted.Add(new KeyValuePair<SiteCode?, string>(SiteCode.Games, tags[SiteCode.Games]));
|
||||
if (tags.ContainsKey(SiteCode.NetYarozeGames))
|
||||
sorted.Add(new KeyValuePair<SiteCode?, string>(SiteCode.NetYarozeGames, tags[SiteCode.NetYarozeGames]));
|
||||
|
||||
|
||||
// Demos
|
||||
if (tags.ContainsKey(SiteCode.PlayableDemos))
|
||||
sorted.Add(new KeyValuePair<SiteCode?, string>(SiteCode.PlayableDemos, tags[SiteCode.PlayableDemos]));
|
||||
@@ -2276,6 +2276,6 @@ namespace MPF.Library
|
||||
return sorted;
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user