Exemple #1
0
        public void HaloReachBuildCacheSymbols()
        {
            CacheSymbolInterface delta = new CacheSymbolInterface(new CacheFileOutputInfoArgs(TestContext,
                                                                                              BlamVersion.HaloReach_Beta, kDirectoryXbox, kMapNames_Beta[0]));
            CacheSymbolInterface retail = new CacheSymbolInterface(new CacheFileOutputInfoArgs(TestContext,
                                                                                               BlamVersion.HaloReach_Xbox, kDirectoryXbox, kMapNames_Retail[0]));

            string results_path;

            delta.BuildStringIdSymbols();
            {
                var c         = delta.Cache;
                var sid_cache = c.StringIds;

                delta.StringIdSetBreakers = new int[15] {
                    1124,                     // 0
                    1476,                     // 1
                    170,                      // 2
                    101,                      // 3
                    213,                      // 4
                    37,                       // 5
                    5,                        // 6
                    1416,                     // 7
                    324,                      // 8
                    15,                       // 9
                    92,                       // A
                                              // B - unused
                    24,                       // C
                    13,                       // D
                    39,                       // E
                    64,                       // F
                };
                delta.StringIdCacheSetStartIndex = sid_cache.StaticCount;
                results_path = BuildResultPath(kTestResultsPath, delta.Cache.EngineVersion, c.Header.Name, "symbols.string_ids", "txt");
                delta.OutputStringIdSymbols(results_path);

                results_path = BuildResultPath(kTestResultsPath, delta.Cache.EngineVersion, c.Header.Name, "symbols.tag_names", "txt");
            }
            retail.BuildStringIdSymbols();
            {
                var c = delta.Cache;

                retail.StringIdSetBreakers = new int[15] {
                    1198,                     // 0 - 0x4AE
                    1637,                     // 1 - 0x665
                    216,                      // 2 - 0xD8
                    106,                      // 3 - 0x6A
                    217,                      // 4 - 0xD9
                    38,                       // 5 - 0x26
                    5,                        // 6 - 0x5
                    1725,                     // 7 - 0x6BD
                    367,                      // 8 - 0x16F
                    20,                       // 9 - 0x14
                    98,                       // A - 0x62
                                              // B - unused
                    24,                       // C - 0x18
                    13,                       // D - 0xD
                    41,                       // E - 0x29
                    97,                       // F - 0x61
                };
                retail.StringIdCacheSetStartIndex = 5802;
                results_path = BuildResultPath(kTestResultsPath, retail.Cache.EngineVersion, c.Header.Name, "symbols.string_ids", "txt");
                retail.OutputStringIdSymbols(results_path);

                results_path = BuildResultPath(kTestResultsPath, retail.Cache.EngineVersion, c.Header.Name, "symbols.tag_names", "txt");
            }
        }
Exemple #2
0
		public void HaloReachBuildCacheSymbols()
		{
			CacheSymbolInterface delta = new CacheSymbolInterface(new CacheFileOutputInfoArgs(TestContext,
				BlamVersion.HaloReach_Beta, kDirectoryXbox, kMapNames_Beta[0]));
			CacheSymbolInterface retail = new CacheSymbolInterface(new CacheFileOutputInfoArgs(TestContext,
				BlamVersion.HaloReach_Xbox, kDirectoryXbox, kMapNames_Retail[0]));

			string results_path;

			delta.BuildStringIdSymbols();
			{
				var c = delta.Cache;
				var sid_cache = c.StringIds;

				delta.StringIdSetBreakers = new int[15] {
					1124, // 0
					1476, // 1
					170,  // 2
					101,  // 3
					213,  // 4 
					37,   // 5
					5,    // 6
					1416, // 7
					324,  // 8
					15,   // 9
					92,   // A
					      // B - unused
					24,   // C
					13,   // D
					39,   // E
					64,   // F
				};
				delta.StringIdCacheSetStartIndex = sid_cache.StaticCount;
				results_path = BuildResultPath(kTestResultsPath, delta.Cache.EngineVersion, c.Header.Name, "symbols.string_ids", "txt");
				delta.OutputStringIdSymbols(results_path);

				results_path = BuildResultPath(kTestResultsPath, delta.Cache.EngineVersion, c.Header.Name, "symbols.tag_names", "txt");
			}
			retail.BuildStringIdSymbols();
			{
				var c = delta.Cache;

				retail.StringIdSetBreakers = new int[15] {
					1198, // 0 - 0x4AE
					1637, // 1 - 0x665
					216,  // 2 - 0xD8
					106,  // 3 - 0x6A
					217,  // 4 - 0xD9
					38,   // 5 - 0x26
					5,    // 6 - 0x5
					1725, // 7 - 0x6BD
					367,  // 8 - 0x16F
					20,   // 9 - 0x14
					98,   // A - 0x62
					      // B - unused
					24,   // C - 0x18
					13,   // D - 0xD
					41,   // E - 0x29
					97,   // F - 0x61
				};
				retail.StringIdCacheSetStartIndex = 5802;
				results_path = BuildResultPath(kTestResultsPath, retail.Cache.EngineVersion, c.Header.Name, "symbols.string_ids", "txt");
				retail.OutputStringIdSymbols(results_path);

				results_path = BuildResultPath(kTestResultsPath, retail.Cache.EngineVersion, c.Header.Name, "symbols.tag_names", "txt");
			}
		}