Skip to content

Commit

Permalink
Merge pull request #115 from Xeeynamo/origin/soraiko/minorcontributions
Browse files Browse the repository at this point in the history
Updating the program to run tests.
  • Loading branch information
Xeeynamo authored May 26, 2020
2 parents 0cb541b + 8e0bba7 commit 8ba7b5a
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
using System;
using OpenKh.Common;
using OpenKh.Kh2;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

Expand All @@ -11,12 +15,25 @@ class Program
{
static void Main(string[] args)
{
//var stream = ProcessStream.SearchProcess("pcsx2");
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");


Stream stream = ProcessStream.SearchProcess("pcsx2"); /* For RAM-related tests. */

//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"));
//var dpd = new OpenKh.Kh2.Dpd(File.OpenRead(@"D:\Hacking\KH2\reverse\SAMPLES\texcommon.dpd"));


}
}
}

0 comments on commit 8ba7b5a

Please sign in to comment.