AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-05-12 18:36:00 (12 years 7 months ago)
Author:Natalie Adams
Branch:default
Commit:9b4390d6d1d1
Parents: bb40f1316d61
Message:Adding GetStream(FileMode) to get the stream of a file

Changes:
Maxios/Axios_settings.cs (1 diff)
Maxios/Engine/File/AxiosFile.cs (1 diff)
Maxios/Engine/File/AxiosIsolatedFile.cs (1 diff)
Maxios/Engine/File/AxiosRegularFile.cs (1 diff)
Maxios/Engine/File/AxiosTitleFile.cs (1 diff)
Maxios/Engine/Interfaces/IAxiosFile.cs (1 diff)

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

Page rendered in 0.42363s using 14 queries.