Better path handling

This commit is contained in:
Deterous
2024-01-31 15:03:37 +09:00
parent e6f6d1f41a
commit 1a74e8fed0
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -366,7 +366,7 @@ namespace IRDKit
// Write PARAM.SFO info
try
{
using DiscUtils.Streams.SparseStream s = reader.OpenFile("PS3_GAME\\PARAM.SFO", FileMode.Open, FileAccess.Read);
using DiscUtils.Streams.SparseStream s = reader.OpenFile(Path.Combine("PS3_GAME", "PARAM.SFO"), FileMode.Open, FileAccess.Read);
ParamSFO paramSFO = new(s);
if (json)
{
@@ -382,7 +382,7 @@ namespace IRDKit
catch (FileNotFoundException)
{
if (!json)
Console.WriteLine($"PS3_GAME\\PARAM.SFO not found in {isoPath}\n");
Console.WriteLine($"\\PS3_GAME\\PARAM.SFO not found in {isoPath}\n");
}
// End JSON object