Пример #1
0
        protected override ResourceFile OpenRoom(byte roomIndex)
        {
            var stream = ScummDiskImage.CreateResource((ResourceIndex0)Index, roomIndex);
            var file   = new ResourceFile0(stream);

            return(file);
        }
Пример #2
0
        protected override ResourceFile OpenRoom(byte roomIndex)
        {
            var diskName  = string.Format("{0:00}.lfl", roomIndex);
            var game1Path = ServiceLocator.FileStorage.Combine(Directory, diskName);

            if (Game.Version == 1)
            {
                if (Game.Platform == Platform.C64)
                {
                    var res = ScummDiskImage.CreateResource((ResourceIndex0)Index, roomIndex);
                    return(new ResourceFile1(res));
                }
                return(new ResourceFile1(new XorStream(ServiceLocator.FileStorage.OpenFileRead(game1Path), 0xFF)));
            }
            return(new ResourceFile2(new XorStream(ServiceLocator.FileStorage.OpenFileRead(game1Path), 0xFF)));
        }