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; }
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); }