Fix issues with path assembly

This commit is contained in:
Matt Nadareski
2025-10-29 20:11:02 -04:00
parent 17b5432352
commit d482fe926c
3 changed files with 6 additions and 5 deletions

View File

@@ -57,6 +57,7 @@
- Slight tweak to automatic UI links
- Add hidden language (NovaAurora)
- Fix langs
- Fix issues with path assembly
### 3.5.0 (2025-10-10)

View File

@@ -57,10 +57,10 @@ namespace MPF.Processors
}
// Get BCA information, if available
info.Extras!.BCA = GetBCA(basePath + $"{basePath}.bca");
info.Extras!.BCA = GetBCA($"{basePath}.bca");
// Get internal information
if (GetGameCubeWiiInformation(basePath + $"{basePath}-dumpinfo.txt", out Region? region, out var version, out var internalName, out var serial))
if (GetGameCubeWiiInformation($"{basePath}-dumpinfo.txt", out Region? region, out var version, out var internalName, out var serial))
{
info.CommonDiscInfo.CommentsSpecialFields![SiteCode.InternalName] = internalName ?? string.Empty;
info.CommonDiscInfo.CommentsSpecialFields![SiteCode.InternalSerialName] = serial ?? string.Empty;

View File

@@ -1410,7 +1410,7 @@ namespace MPF.Processors
/// <returns>Status of the LibCrypt data, if possible</returns>
private static void GetLibCryptDetected(string basePath, out YesNo detected, out string? data)
{
string subPath = basePath + ".sub";
string subPath = $"{basePath}.sub";
if (!File.Exists(subPath))
{
detected = YesNo.NULL;
@@ -1426,9 +1426,9 @@ namespace MPF.Processors
}
// Guard against false positives
if (File.Exists(basePath + "_subIntention.txt"))
if (File.Exists($"{basePath}_subIntention.txt"))
{
string libCryptData = ProcessingTool.GetFullFile(basePath + "_subIntention.txt") ?? "";
string libCryptData = ProcessingTool.GetFullFile($"{basePath}_subIntention.txt") ?? "";
if (string.IsNullOrEmpty(libCryptData))
{
detected = YesNo.No;