Remove test code from PbpResign
This commit is contained in:
parent
5fdceefa8b
commit
9001a461cc
|
@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<History>True|2023-04-23T20:18:55.4774877Z;True|2023-04-20T08:33:00.3404616+12:00;False|2023-04-20T08:29:02.1306599+12:00;True|2023-04-19T21:53:45.1116925+12:00;True|2023-04-19T20:46:20.2756012+12:00;True|2023-04-19T19:58:40.3825010+12:00;True|2023-04-18T00:00:51.4131559+12:00;True|2023-04-17T09:56:35.5065135+12:00;True|2023-04-17T09:22:54.8607008+12:00;True|2023-04-17T08:27:16.5281469+12:00;True|2023-04-17T08:22:02.0531219+12:00;</History>
|
||||
<History>True|2023-04-26T03:20:05.7988009Z;True|2023-04-24T08:18:55.4774877+12:00;True|2023-04-20T08:33:00.3404616+12:00;False|2023-04-20T08:29:02.1306599+12:00;True|2023-04-19T21:53:45.1116925+12:00;True|2023-04-19T20:46:20.2756012+12:00;True|2023-04-19T19:58:40.3825010+12:00;True|2023-04-18T00:00:51.4131559+12:00;True|2023-04-17T09:56:35.5065135+12:00;True|2023-04-17T09:22:54.8607008+12:00;True|2023-04-17T08:27:16.5281469+12:00;True|2023-04-17T08:22:02.0531219+12:00;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -1070,22 +1070,6 @@ namespace PbpResign
|
|||
return false;
|
||||
}
|
||||
type = 0;
|
||||
/*
|
||||
Console.WriteLine("VersionKey: " + BitConverter.ToString(NewVersionKey.ToArray()));
|
||||
|
||||
UmdInfo disc = new UmdInfo("fft.iso");
|
||||
NpUmdImg npumd = new NpUmdImg(new NpDrmInfo(NewVersionKey.ToArray(), CId, npHdr.NpFlags), disc, false);
|
||||
|
||||
npumd.CreatePsar();
|
||||
|
||||
PbpBuilder.CreatePbp(disc.DataFiles["PARAM.SFO"],
|
||||
disc.DataFiles["ICON0.PNG"],
|
||||
disc.DataFiles["ICON1.PMF"],
|
||||
disc.DataFiles["PIC0.PNG"],
|
||||
disc.DataFiles["PIC1.PNG"],
|
||||
disc.DataFiles["SND0.AT3"],
|
||||
npumd,
|
||||
"FFT.PBP"); */
|
||||
|
||||
return CopyNpUmdImg(input, output, pbpHdr, psarBuff, npHdr);
|
||||
}
|
||||
|
@ -1100,20 +1084,6 @@ namespace PbpResign
|
|||
return false;
|
||||
}
|
||||
type = 1;
|
||||
/*DiscInfo[] discs = new DiscInfo[2];
|
||||
discs[0] = new DiscInfo("ABEE\\D1.CUE", "Oddworld: Abe's Exoddus", "SLES01480");
|
||||
discs[1] = new DiscInfo("ABEE\\D2.CUE", "Oddworld: Abe's Exoddus", "SLES11480");
|
||||
PsTitleImg title = new PsTitleImg(NewVersionKey.ToArray(), CId, discs);
|
||||
title.CreatePsar();
|
||||
PbpBuilder.CreatePbp(File.ReadAllBytes("TEST\\PARAM.SFO"), File.ReadAllBytes("TEST\\ICON0.PNG"), null,
|
||||
File.ReadAllBytes("TEST\\PIC0.PNG"), File.ReadAllBytes("TEST\\PIC1.PNG"), null,
|
||||
title.GenerateDataPsp(), title, "ABE-EBOOT.PBP");
|
||||
//PsIsoImg i = new PsIsoImg("ROLLCAGE\\ROLLCAGE.CUE", "SLUS00800", "ROLLCAGE", CId, NewVersionKey.ToArray(),
|
||||
// File.ReadAllBytes("TEST\\PARAM.SFO"), File.ReadAllBytes("TEST\\ICON0.PNG"), null,
|
||||
// File.ReadAllBytes("TEST\\PIC0.PNG"), File.ReadAllBytes("TEST\\PIC1.PNG"), null);
|
||||
//File.WriteAllBytes("TEST.BIN", i.GetIsoHeader());
|
||||
//File.WriteAllBytes("TEST.ISOc", i.GetIso());*/
|
||||
|
||||
|
||||
return CopyPsIsoImg(input, output, pbpHdr);
|
||||
}
|
||||
|
@ -1208,8 +1178,8 @@ namespace PbpResign
|
|||
|
||||
var srcPath = Path.GetDirectoryName(srcPbp);
|
||||
|
||||
// try
|
||||
// {
|
||||
try
|
||||
{
|
||||
using var input = File.OpenRead(srcPbp);
|
||||
var hdr = new byte[Marshal.SizeOf<PbpHeader>()];
|
||||
var len = input.Read(hdr);
|
||||
|
@ -1374,11 +1344,11 @@ namespace PbpResign
|
|||
//}
|
||||
}
|
||||
|
||||
//}
|
||||
//catch (Exception e)
|
||||
//{
|
||||
// Console.WriteLine(e);
|
||||
//}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<PublishDir>bin\Release\net6.0\publish\win-x64\</PublishDir>
|
||||
<PublishProtocol>FileSystem</PublishProtocol>
|
||||
<_TargetId>Folder</_TargetId>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<SelfContained>true</SelfContained>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<PublishReadyToRun>true</PublishReadyToRun>
|
||||
<PublishTrimmed>true</PublishTrimmed>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue