axiosengine 

axiosengine Commit Details


Date:2012-05-12 18:36:46 (12 years 5 months ago)
Author:Natalie Adams
Branch:master
Commit:e74c663c0258ea16655ffa747ff7116383e9ee66
Parents: f152fc29789826a022d8e6a19631e520e8d7ba31
Message:Adding GetStream(FileMode) to get the stream of a file

Changes:

File differences

axios/Axios_settings.cs
7272
7373
7474
75
7576
7677
7778
* - Adding support for Gleed2D
* - Splitting the code for Gleed2D into seperate files
* - Adding a cache for loading in textures for Gleed2D
* - Adding GetStream(FileMode) to get the stream of a file
*
*/
axios/Engine/File/AxiosFile.cs
2828
2929
3030
31
32
33
34
35
3136
3237
{
throw new NotImplementedException();
}
public virtual FileStream GetStream(FileMode mode)
{
throw new NotImplementedException();
}
}
}
axios/Engine/File/AxiosIsolatedFile.cs
5050
5151
5252
53
54
55
56
57
58
59
60
61
62
63
64
65
5366
5467
Content = ret;
return ret;
}
public override FileStream GetStream(FileMode mode)
{
#if WINDOWS
IsolatedStorageFile savegameStorage = IsolatedStorageFile.GetUserStoreForDomain();
#else
IsolatedStorageFile savegameStorage = IsolatedStorageFile.GetUserStoreForApplication();
#endif
IsolatedStorageFileStream fs = null;
fs = savegameStorage.OpenFile(_filename, mode);
return fs;
}
}
}
axios/Engine/File/AxiosRegularFile.cs
3636
3737
3838
39
40
41
42
43
44
3945
4046
sr.Close();
return ret;
}
public override FileStream GetStream(FileMode mode)
{
FileStream fs = new FileStream(_filename, mode);
return fs;
}
}
}
axios/Engine/File/AxiosTitleFile.cs
2727
2828
2929
30
31
32
33
34
35
3036
3137
sr.Close();
return this.Content;
}
public override FileStream GetStream(FileMode mode)
{
FileStream fs = (FileStream)TitleContainer.OpenStream(_filename);
return fs;
}
}
}
axios/Engine/Interfaces/IAxiosFile.cs
66
77
88
9
910
1011
{
void WriteData(string data, FileMode mode);
string ReadData();
FileStream GetStream(FileMode mode);
}
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.08668s using 14 queries.