mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 05:35:34 +08:00
Update Scheme Tool
This commit is contained in:
parent
f1bfd81823
commit
0d1e828d06
@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@ -25,7 +26,25 @@ namespace SchemeTool
|
||||
GameRes.Formats.KiriKiri.Xp3Scheme scheme = format.Scheme as GameRes.Formats.KiriKiri.Xp3Scheme;
|
||||
|
||||
// Add scheme information here
|
||||
|
||||
#if false
|
||||
byte[] cb = File.ReadAllBytes(@"MEM_10014628_00001000.mem");
|
||||
var cb2 = MemoryMarshal.Cast<byte, uint>(cb);
|
||||
for (int i = 0; i < cb2.Length; i++)
|
||||
cb2[i] = ~cb2[i];
|
||||
var cs = new GameRes.Formats.KiriKiri.CxScheme
|
||||
{
|
||||
Mask = 0x000,
|
||||
Offset = 0x000,
|
||||
PrologOrder = new byte[] { 0, 1, 2 },
|
||||
OddBranchOrder = new byte[] { 0, 1, 2, 3, 4, 5 },
|
||||
EvenBranchOrder = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7 },
|
||||
ControlBlock = cb2.ToArray()
|
||||
};
|
||||
GameRes.Formats.KiriKiri.ICrypt crypt = new GameRes.Formats.KiriKiri.CxEncryption(cs);
|
||||
#else
|
||||
GameRes.Formats.KiriKiri.ICrypt crypt = new GameRes.Formats.KiriKiri.XorCrypt(0x00);
|
||||
#endif
|
||||
|
||||
scheme.KnownSchemes.Add("game title", crypt);
|
||||
}
|
||||
@ -36,7 +55,7 @@ namespace SchemeTool
|
||||
if (gameMap != null)
|
||||
{
|
||||
// Add file name here
|
||||
gameMap.Add("file.exe", "game title");
|
||||
gameMap.Add("game.exe", "game title");
|
||||
}
|
||||
|
||||
// Save database
|
||||
|
@ -34,7 +34,20 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
@ -48,6 +61,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ArcFormats\ArcFormats.csproj">
|
||||
|
7
SchemeTool/packages.config
Normal file
7
SchemeTool/packages.config
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net461" />
|
||||
<package id="System.Memory" version="4.5.4" targetFramework="net461" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net461" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" targetFramework="net461" />
|
||||
</packages>
|
Loading…
Reference in New Issue
Block a user