Fix startdat not appearing
This commit is contained in:
parent
f5e9d5eaee
commit
fc5e6835ed
6
ChovySign-CLI/ChovySign-CLI.csproj.user
Normal file
6
ChovySign-CLI/ChovySign-CLI.csproj.user
Normal 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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -59,6 +59,7 @@ namespace GameBuilder.Pops
|
||||||
{
|
{
|
||||||
using (SparseStream systemCnfStream = cdReader.OpenFile("SYSTEM.CNF", FileMode.Open))
|
using (SparseStream systemCnfStream = cdReader.OpenFile("SYSTEM.CNF", FileMode.Open))
|
||||||
{
|
{
|
||||||
|
systemCnfStream.Seek(0x18, SeekOrigin.Begin);
|
||||||
using (StreamReader systemCnfReader = new StreamReader(systemCnfStream))
|
using (StreamReader systemCnfReader = new StreamReader(systemCnfStream))
|
||||||
{
|
{
|
||||||
for (string? line = systemCnfReader.ReadLine(); line is not null; line = systemCnfReader.ReadLine())
|
for (string? line = systemCnfReader.ReadLine(); line is not null; line = systemCnfReader.ReadLine())
|
||||||
|
|
|
@ -18,9 +18,9 @@ namespace GameBuilder.Pops
|
||||||
simple = new MemoryStream();
|
simple = new MemoryStream();
|
||||||
simpleUtil = new StreamUtil(simple);
|
simpleUtil = new StreamUtil(simple);
|
||||||
|
|
||||||
StartDat = NpDrmPsar.CreateStartDat(Resources.STARTDATPOPS);
|
this.StartDat = NpDrmPsar.CreateStartDat(Resources.STARTDATPOPS);
|
||||||
createSimpleDat();
|
this.createSimpleDat();
|
||||||
SimplePgd = generateSimplePgd();
|
this.SimplePgd = generateSimplePgd();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,6 @@ namespace GameBuilder.Pops
|
||||||
compressor.CompressedIso.Seek(0x00, SeekOrigin.Begin);
|
compressor.CompressedIso.Seek(0x00, SeekOrigin.Begin);
|
||||||
compressor.CompressedIso.CopyTo(Psar);
|
compressor.CompressedIso.CopyTo(Psar);
|
||||||
|
|
||||||
Psar.Seek(0x00, SeekOrigin.Begin);
|
|
||||||
if (isPartOfMultiDisc) return;
|
if (isPartOfMultiDisc) return;
|
||||||
|
|
||||||
// write STARTDAT
|
// write STARTDAT
|
||||||
|
@ -59,8 +58,6 @@ namespace GameBuilder.Pops
|
||||||
// set STARTDAT location
|
// set STARTDAT location
|
||||||
Psar.Seek(0xC, SeekOrigin.Begin);
|
Psar.Seek(0xC, SeekOrigin.Begin);
|
||||||
psarUtil.WriteInt64(startDatLocation);
|
psarUtil.WriteInt64(startDatLocation);
|
||||||
|
|
||||||
Psar.Seek(0x00, SeekOrigin.Begin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user