コード例 #1
0
        protected DataCacheFile(BlamVersion engine, string path)
        {
            if (!SharableReferencePc(path) && !SharableReferenceCe(path))
            {
                InputStream = new IO.EndianReader(path, IO.EndianState.Little, this);
                if (!CacheIsReadonly(path))
                {
                    OutputStream = new IO.EndianWriter(path, IO.EndianState.Little, this);
                }
            }

            cacheIndex = new DataIndex();

            engineVersion = engine;
        }
コード例 #2
0
ファイル: CacheFile.cs プロジェクト: CodeAsm/open-sauce
		protected DataCacheFile(BlamVersion engine, string path)
		{
			if (!SharableReferencePc(path) && !SharableReferenceCe(path))
			{
				InputStream = new IO.EndianReader(path, IO.EndianState.Little, this);
				if (!CacheIsReadonly(path))
					OutputStream = new IO.EndianWriter(path, IO.EndianState.Little, this);
			}

			cacheIndex = new DataIndex();

			engineVersion = engine;
		}