Наследование: ResourceFile7
Пример #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 ResourceFile8((ResourceIndex8)Index, ServiceLocator.FileStorage.OpenFileRead(game1Path));
            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 ResourceFile8((ResourceIndex8)Index, ServiceLocator.FileStorage.OpenFileRead(game1Path));

            return(file);
        }