示例#1
0
        public static async Task <bool> IsRomFs(IBinaryDataAccessor file)
        {
            try
            {
                if (file.Length < 4)
                {
                    return(false);
                }

                return(await file.ReadStringAsync(0, 4, Encoding.ASCII) == "IVFC");
            }
            catch (Exception)
            {
                return(false);
            }
        }
示例#2
0
        public static async Task <bool> IsNcsd(IBinaryDataAccessor file)
        {
            try
            {
                if (file.Length < 0x104)
                {
                    return(false);
                }

                return(await file.ReadStringAsync(0x100, 4, Encoding.ASCII) == "NCSD");
            }
            catch (Exception)
            {
                return(false);
            }
        }