Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OpenKh.Common;
using OpenKh.Common;
using OpenKh.Kh2;
using OpenKh.Tools.Common;
using System;
Expand All @@ -12,30 +12,30 @@

namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
string OpenKhSolutionDirectory =
Directory.GetParent( /* ConsoleApp1 */
Directory.GetParent( /* bin */
Directory.GetParent( /* Debug */
Directory.GetParent(Directory.GetCurrentDirectory()).FullName).FullName).FullName).FullName;
class Program
{
static void Main(string[] args)
{
string OpenKhSolutionDirectory =
Directory.GetParent( /* ConsoleApp1 */
Directory.GetParent( /* bin */
Directory.GetParent( /* Debug */
Directory.GetParent(Directory.GetCurrentDirectory()).FullName).FullName).FullName).FullName;

if (!Directory.Exists(OpenKhSolutionDirectory + @"\OpenKh.Tests"))
return;
Directory.SetCurrentDirectory(OpenKhSolutionDirectory + @"\OpenKh.Tests");
if (!Directory.Exists(OpenKhSolutionDirectory + @"\OpenKh.Tests"))
return;
Directory.SetCurrentDirectory(OpenKhSolutionDirectory + @"\OpenKh.Tests");


var process = ProcessStream.TryGetProcess(x => x.ProcessName == "pcsx2"); /* For RAM-related tests. */
using var stream = new ProcessStream(process, 0x20000000, 0x2000000);
var process = ProcessStream.TryGetProcess(x => x.ProcessName == "pcsx2"); /* For RAM-related tests. */
using var stream = new ProcessStream(process, 0x20000000, 0x2000000);

//stream.Position = 0x00964c10;
//var dpd = new OpenKh.Kh2.Dpd(stream);
//var dpd = new OpenKh.Kh2.Dpd(File.OpenRead(@"D:\Hacking\KH2\reverse\SAMPLES\tt_0.dpd"));
//var dpd = new OpenKh.Kh2.Dpd(File.OpenRead(@"D:\Hacking\KH2\reverse\SAMPLES\texcommon.dpd"));
//stream.Position = 0x00964c10;
//var dpd = new OpenKh.Kh2.Dpd(stream);
//var dpd = new OpenKh.Kh2.Dpd(File.OpenRead(@"D:\Hacking\KH2\reverse\SAMPLES\tt_0.dpd"));
//var dpd = new OpenKh.Kh2.Dpd(File.OpenRead(@"D:\Hacking\KH2\reverse\SAMPLES\texcommon.dpd"));


}
}
}
}
}
2 changes: 1 addition & 1 deletion ConsoleApp1/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down
2 changes: 1 addition & 1 deletion OpenKh.Command.Arc/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OpenKh.Common;
using OpenKh.Common;
using McMaster.Extensions.CommandLineUtils;
using System;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion OpenKh.Command.Bar/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class Core
internal class BarRoot
{
[JsonProperty] public string OriginalFileName { get; set; }
[JsonProperty] public Kh2.Bar.MotionsetType Motionset { get; set; }
[JsonProperty] public Kh2.Bar.MotionsetType Motionset { get; set; }
[JsonProperty] public List<BarDesc> Entries { get; set; }
}

Expand Down
2 changes: 1 addition & 1 deletion OpenKh.Command.Bbsa/ArchiveNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;

namespace OpenKh.Command.Bbsa
{
Expand Down
4 changes: 2 additions & 2 deletions OpenKh.Command.Bbsa/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using McMaster.Extensions.CommandLineUtils;
using McMaster.Extensions.CommandLineUtils;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
Expand Down Expand Up @@ -100,7 +100,7 @@ private static void ExtractArchives(IEnumerable<string> bbsaFileNames, string ou
}
}
}

private class ListCommand
{
[Required]
Expand Down
Loading