상속: ResourceFile5
예제 #1
0
        protected override ResourceFile OpenRoom(byte roomIndex)
        {
            var diskNum = Index.RoomResources[roomIndex].RoomNum;
            var diskName = Game.Pattern == null ? string.Format("{0}.{1:000}", Game.Id, diskNum) : string.Format(Game.Pattern, diskNum);
            var game1Path = ScummHelper.NormalizePath(ServiceLocator.FileStorage.Combine(Directory, diskName));

            var file = new ResourceFile6(new XorStream(ServiceLocator.FileStorage.OpenFileRead(game1Path), 0x69));
            return file;
        }
예제 #2
0
        protected override ResourceFile OpenRoom(byte roomIndex)
        {
            var diskNum  = Index.RoomResources[roomIndex].RoomNum;
            var diskName = Game.Pattern == null?string.Format("{0}.{1:000}", Game.Id, diskNum) : string.Format(Game.Pattern, diskNum);

            var game1Path = ScummHelper.NormalizePath(ServiceLocator.FileStorage.Combine(Directory, diskName));

            var file = new ResourceFile6(new XorStream(ServiceLocator.FileStorage.OpenFileRead(game1Path), 0x69));

            return(file);
        }