Exemplo n.º 1
0
        public void Initialize(BinaryReader br)
        {
            return;

            long seekback = br.BaseStream.Position;

            br.BaseStream.Position = CutsceneAddress;
            cutscene = new Cutscenes.Cutscene(br.BaseStream);
            br.BaseStream.Position = seekback;
        }
Exemplo n.º 2
0
        public static bool TryGetCutscene(Rom rom, long address, out Cutscenes.Cutscene cutscene)
        {
            FileRecord addr;

            cutscene = null;

            addr = rom.Files.GetFileStart(address);
            if (addr == null)
            {
                return(false);
            }
            var s = (Stream)rom.Files.GetFile(addr.VirtualAddress);

            s.Position = addr.GetRelativeAddress(address);
            cutscene   = new Cutscenes.Cutscene(s);
            return(true);
        }