Ejemplo n.º 1
0
        private void LoadStringIDs(IReader reader)
        {
            var stringTable = new FourthGenIndexedStringTable(reader);
            int buildVer    = 0;

            if (_buildInfo.Name.Contains("ZBT 70"))
            {
                buildVer = 2;
            }
            else if (_buildInfo.Name.Contains("ZBT"))
            {
                buildVer = 1;
            }

            _stringIds = new FourthGenIndexedStringIDSource(stringTable, _buildInfo.StringIDs, buildVer);
        }
        public FourthGenIndexedStringIDSource(FourthGenIndexedStringTable strings, IStringIDResolver resolver, int buildVer)
        {
            _strings = strings;
			switch (buildVer)
			{
				default:
				case 0://original release, 1.106708 cert_ms23
					_setOffsets = new int[] { 0x90F, 0x1, 0x685, 0x720, 0x7C4, 0x778, 0x7D0, 0x8EA, 0x902 };
					break;
				case 1://first beta release, 11.1.498295 Live
					_setOffsets = new int[] { 0x910, 0x1, 0x685, 0x720, 0x7C4, 0x778, 0x7D0, 0x8EB, 0x903 };
					break;
				case 2://first shrine release, 12.1.700123 cert_ms30_oct19
					_setOffsets = new int[] { 0x918, 0x1, 0x685, 0x720, 0x7C4, 0x778, 0x7D0, 0x8F3, 0x90B };
					break;
			}
        }
        public FourthGenIndexedStringIDSource(FourthGenIndexedStringTable strings, IStringIDResolver resolver, int buildVer)
        {
            _strings = strings;
            switch (buildVer)
            {
            default:
            case 0:                    //original release, 1.106708 cert_ms23
                _setOffsets = new int[] { 0x90F, 0x1, 0x685, 0x720, 0x7C4, 0x778, 0x7D0, 0x8EA, 0x902 };
                break;

            case 1:                    //first beta release, 11.1.498295 Live
                _setOffsets = new int[] { 0x910, 0x1, 0x685, 0x720, 0x7C4, 0x778, 0x7D0, 0x8EB, 0x903 };
                break;

            case 2:                    //first shrine release, 12.1.700123 cert_ms30_oct19
                _setOffsets = new int[] { 0x918, 0x1, 0x685, 0x720, 0x7C4, 0x778, 0x7D0, 0x8F3, 0x90B };
                break;
            }
        }
 public FourthGenIndexedStringIDSource(FourthGenIndexedStringTable strings, IStringIDResolver resolver)
 {
     _strings = strings;
 }
Ejemplo n.º 5
0
        private void LoadStringIDs(IReader reader)
		{
            var stringTable = new FourthGenIndexedStringTable(reader);
			int buildVer = 0;
			if (_buildInfo.Name.Contains("ZBT 70"))
				buildVer = 2;
			else if (_buildInfo.Name.Contains("ZBT"))
				buildVer = 1;

            _stringIds = new FourthGenIndexedStringIDSource(stringTable, _buildInfo.StringIDs, buildVer);
		}
Ejemplo n.º 6
0
 private void LoadStringIDs(IReader reader)
 {
     var stringTable = new FourthGenIndexedStringTable(reader);
     _stringIds = new FourthGenIndexedStringIDSource(stringTable, _buildInfo.StringIDs);
 }