Esempio n. 1
0
        public void _settype(string filename)
        {
            switch (Program.getFileExt(filename))
            {
            case "nes":
                _hashtype  = _hashtypes.md5;
                _hashstart = 16;
                break;

            case "gb":
            case "gbc":
                _hashtype   = _hashtypes.stored;
                _hashstart  = 0x134;
                _hashlength = 12;
                break;

            case "gba":
                _hashtype   = _hashtypes.stored;
                _hashstart  = 0xA0;
                _hashlength = 12;
                break;

            case "z64":
            case "n64":
                _hashtype   = _hashtypes.stored;
                _hashstart  = 0x10;
                _hashlength = 4;
                break;

            default:
                _hashtype = _hashtypes.none;
                break;
            }
        }
Esempio n. 2
0
		public void _settype(string filename) {
			switch (Program.getFileExt(filename)) {
				case "nes":
					_hashtype = _hashtypes.md5;
					_hashstart = 16;
					break;
				case "gb":
				case "gbc":
					_hashtype = _hashtypes.stored;
					_hashstart = 0x134;
					_hashlength = 12;
					break;
				case "gba":
					_hashtype = _hashtypes.stored;
					_hashstart = 0xA0;
					_hashlength = 12;
					break;
				case "z64":
				case "n64":
					_hashtype = _hashtypes.stored;
					_hashstart = 0x10;
					_hashlength = 4;
					break;
				default:
					_hashtype = _hashtypes.none;
					break;
			}
		}