Skip to content

Commit

Permalink
Updated Elena and using merged data from both kernels - fixes an issu…
Browse files Browse the repository at this point in the history
…e with modded version where text is wrong.
  • Loading branch information
Shojy committed Jul 16, 2019
1 parent 86e27f2 commit a7bad77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions Tseng/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ private static void LoadDataFromKernel()
}
var ff7Exe = FF7.MainModule?.FileName;
var ff7Folder = Path.GetDirectoryName(ff7Exe);
var kernelLocation = Path.Combine(ff7Folder, "data", "lang-en", "kernel", "KERNEL.BIN");
var kernelLocation = Path.Combine(ff7Folder, "data", "lang-en", "kernel");

var elena = new KernelReader(kernelLocation);
var elena = new KernelReader(Path.Combine(kernelLocation, "KERNEL.BIN"));
elena.MergeKernel2Data(Path.Combine(kernelLocation, "kernel2.bin"));

// Map Elena's data into local data dbs.
foreach (var materia in elena.MateriaData.Materias)
Expand Down Expand Up @@ -341,7 +342,7 @@ private static void SearchForProcess(string processName)
Console.WriteLine("Searching...");
if (Timer is null)
{
Timer = new Timer(500);
Timer = new Timer(300);
Timer.Elapsed += Timer_Elapsed;
Timer.AutoReset = true;

Expand Down
4 changes: 2 additions & 2 deletions Tseng/Tseng.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
Expand All @@ -25,7 +25,7 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.1.1" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Shojy.FF7.Elena" Version="0.1.0-pre" />
<PackageReference Include="Shojy.FF7.Elena" Version="0.1.1-dev" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Tseng/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
</div>
</div>

<script src="vue.js"></script>
<script src="axios.js"></script>
<script src="~/vue.js"></script>
<script src="~/axios.js"></script>
<script>
const baseWeapon = {
name: 'Buster Sword',
Expand Down

0 comments on commit a7bad77

Please sign in to comment.