internal static void TestSndComparer(TestContext tc, BlamVersion game, string dir, string[] map_names) { int map_count = map_names.Length; List <MapSndComparer> maps = new List <MapSndComparer>(map_count); var thread_code = new System.Threading.WaitCallback(delegate(object param) { var args = param as CacheFileOutputInfoArgs; MapSndComparer cmp = SndComparerMethod(args); lock (maps) maps.Add(cmp); args.SignalFinished(); }); CacheFileOutputInfoArgs.TestThreadedMethod(tc, thread_code, game, dir, map_names); SndComparer snd_cmp = new SndComparer(map_count); snd_cmp.PreProcess(maps, map_count); snd_cmp.ScanForDiffs(); snd_cmp.OutputDiffs(BuildResultPath(kTestResultsPath, game, null, "sound_cmp_results", "txt")); }
void Halo2TestCacheExtraction(BlamVersion game, string dir, params string[] map_names) { (Program.GetManager(game) as Managers.IStringIdController).StringIdCacheOpen(game); (Program.GetManager(game) as Managers.IVertexBufferController).VertexBufferCacheOpen(game); CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheExtractionMethod, game, dir, map_names); (Program.GetManager(game) as Managers.IVertexBufferController).VertexBufferCacheClose(game); (Program.GetManager(game) as Managers.IStringIdController).StringIdCacheClose(game); }
public void Halo2TestCacheOutputXboxAlpha() { (Program.GetManager(BlamVersion.Halo2_Alpha) as Managers.IStringIdController) .StringIdCacheOpen(BlamVersion.Halo2_Alpha); CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheOutputInformationMethod, BlamVersion.Halo2_Alpha, kMapsDirectoryXboxAlpha, kMapNamesXboxAlpha); (Program.GetManager(BlamVersion.Halo2_Alpha) as Managers.IStringIdController) .StringIdCacheClose(BlamVersion.Halo2_Alpha); }
void CacheOutputInformation(BlamVersion game) { string dir = null; if (game == BlamVersion.Stubbs_PC) { dir = kMapsDirectoryPc; } else if (game == BlamVersion.Stubbs_Xbox) { dir = kMapsDirectoryXbox; } if (!string.IsNullOrEmpty(dir)) { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheOutputInformation, game, dir, kMapNames); } }
public void Halo2_ExtractTagCache(Blam.DatumIndex DatumIndex, bool Recursive, bool OutputDB, bool Override, string DestinationPath, string MapPath, params string[] map_names) { BlamVersion game = BlamVersion.Halo2_PC; string MapsDir = ""; if (MapPath != "") { MapsDir = MapPath; } else { MapsDir = kMapsDirectoryPc; } Program.Halo2.LoadPc( MapsDir + @"mainmenu.map", MapsDir + @"shared.map", MapsDir + @"single_player_shared.map"); Assert.IsNotNull(Program.Halo2.PcMainmenu); Assert.IsNotNull(Program.Halo2.PcShared); Assert.IsNotNull(Program.Halo2.PcCampaign); (Program.GetManager(game) as Managers.IStringIdController).StringIdCacheOpen(game); (Program.GetManager(game) as Managers.IVertexBufferController) .VertexBufferCacheOpen(game); CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, H2CacheExtractionMethod, BlamVersion.Halo2_PC, MapsDir, DatumIndex, Recursive, OutputDB, Override, DestinationPath, map_names); (Program.GetManager(game) as Managers.IVertexBufferController).VertexBufferCacheClose(game); (Program.GetManager(game) as Managers.IStringIdController) .StringIdCacheClose(game); }
public void Halo2_ExtractTagCache(Blam.DatumIndex DatumIndex, bool Recursive, bool OutputDB, bool Override, string DestinationPath, params string[] map_names) { BlamVersion game = BlamVersion.Halo2_PC; Program.Halo2.LoadPc( kMapsDirectoryPc + @"mainmenu.map", kMapsDirectoryPc + @"shared.map", kMapsDirectoryPc + @"single_player_shared.map"); (Program.GetManager(game) as Managers.IStringIdController).StringIdCacheOpen(game); (Program.GetManager(game) as Managers.IVertexBufferController) .VertexBufferCacheOpen(game); CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, H2CacheExtractionMethod, BlamVersion.Halo2_PC, kMapsDirectoryPc, DatumIndex, Recursive, OutputDB, Override, DestinationPath, map_names); (Program.GetManager(game) as Managers.IVertexBufferController).VertexBufferCacheClose(game); (Program.GetManager(game) as Managers.IStringIdController) .StringIdCacheClose(game); }
public void Halo3TestDumpZoneDataXboxEpsilon() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, DumpZoneDataMethod, BlamVersion.Halo3_Epsilon, kDirectoryXbox, kMapNames_Epsilon); }
public void HaloReachTestDumpScriptGraphs() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheDumpScriptGraphs, BlamVersion.HaloReach_Xbox, kDirectoryXbox, kMapNames_Retail); }
public void HaloReachTestCacheOutputXboxBeta() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheOutputInformationMethod, BlamVersion.HaloReach_Beta, kDirectoryXbox, kMapNames_Delta); }
public void Halo3TestCacheOutputXboxEpsilon() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheOutputInformationMethod, BlamVersion.Halo3_Epsilon, kDirectoryXbox, kMapNames_Epsilon); }
public void Halo3TestCacheLoadResourceXbox() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheLoadResourceMethod, BlamVersion.Halo3_Xbox, kDirectoryXbox, kMapNames_Retail[0]); }
public void Halo4TestCacheOutputXbox() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, CacheOutputInformationMethod, BlamVersion.Halo4_Xbox, kDirectoryXbox, kMapNames_Retail); }
public void HaloOdstTestDumpZoneDataXbox() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, Halo3.DumpZoneDataMethod, BlamVersion.HaloOdst_Xbox, kMapsDirectoryXbox, kMapNames); }
public void HaloOdstTestCacheLoadResourceXbox() { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, Halo3.CacheLoadResourceMethod, BlamVersion.HaloOdst_Xbox, kMapsDirectoryXbox, kMapNames); }
public void Halo2_ExtractTagCache(Blam.DatumIndex DatumIndex, params string[] map_names) { CacheFileOutputInfoArgs.TestThreadedMethod(TestContext, H2CacheExtractionMethod, BlamVersion.Halo2_PC, kMapsDirectoryPc, DatumIndex, map_names); }