Fix startdat not appearing

This commit is contained in:
Li 2023-04-17 08:25:45 +12:00
parent f5e9d5eaee
commit fc5e6835ed
6 changed files with 39 additions and 6 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>C:\Users\Li\Documents\git\Chovy-Sign-v2\ChovySign-CLI\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
</Project>

View File

@ -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\</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>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2023-04-16T20:22:02.0531219Z;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

View File

@ -59,6 +59,7 @@ namespace GameBuilder.Pops
{
using (SparseStream systemCnfStream = cdReader.OpenFile("SYSTEM.CNF", FileMode.Open))
{
systemCnfStream.Seek(0x18, SeekOrigin.Begin);
using (StreamReader systemCnfReader = new StreamReader(systemCnfStream))
{
for (string? line = systemCnfReader.ReadLine(); line is not null; line = systemCnfReader.ReadLine())

View File

@ -18,9 +18,9 @@ namespace GameBuilder.Pops
simple = new MemoryStream();
simpleUtil = new StreamUtil(simple);
StartDat = NpDrmPsar.CreateStartDat(Resources.STARTDATPOPS);
createSimpleDat();
SimplePgd = generateSimplePgd();
this.StartDat = NpDrmPsar.CreateStartDat(Resources.STARTDATPOPS);
this.createSimpleDat();
this.SimplePgd = generateSimplePgd();
}

View File

@ -46,7 +46,6 @@ namespace GameBuilder.Pops
compressor.CompressedIso.Seek(0x00, SeekOrigin.Begin);
compressor.CompressedIso.CopyTo(Psar);
Psar.Seek(0x00, SeekOrigin.Begin);
if (isPartOfMultiDisc) return;
// write STARTDAT
@ -59,8 +58,6 @@ namespace GameBuilder.Pops
// set STARTDAT location
Psar.Seek(0xC, SeekOrigin.Begin);
psarUtil.WriteInt64(startDatLocation);
Psar.Seek(0x00, SeekOrigin.Begin);
}