コード例 #1
0
        public CacheFile(string map_name)
        {
            if (!SharableReferenceXbox(map_name) && !SharableReferencePc(map_name))
            {
                InputStream = new IO.EndianReader(map_name, IO.EndianState.Big, this);
                if (!CacheIsReadonly(map_name))
                {
                    OutputStream = new IO.EndianWriter(map_name, IO.EndianState.Big, this);
                }
            }

            cacheIndex  = new CacheIndex();
            cacheHeader = new CacheHeader();
        }
コード例 #2
0
ファイル: CacheFile.cs プロジェクト: CodeAsm/open-sauce
		public CacheFile(string map_name)
		{
			if (!SharableReferenceXbox(map_name) && !SharableReferencePc(map_name))
			{
				InputStream = new IO.EndianReader(map_name, IO.EndianState.Big, this);
				if (!CacheIsReadonly(map_name))
					OutputStream = new IO.EndianWriter(map_name, IO.EndianState.Big, this);
			}

			cacheIndex = new CacheIndex();
			cacheHeader = new CacheHeader();
		}