1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-21 14:00:52 +00:00

added partial VFS support - enough to read static data from any source

This commit is contained in:
fgenesis 2011-09-15 18:33:13 +02:00
parent 0951283b31
commit fa3e9e7329
56 changed files with 4021 additions and 606 deletions

View file

@ -246,7 +246,7 @@ void WorldMap::load(const std::string &file)
std::string line;
std::ifstream in(file.c_str());
VFSTextStdStreamIn in(file.c_str());
while (std::getline(in, line))
{
@ -261,6 +261,7 @@ void WorldMap::load(const std::string &file)
void WorldMap::save(const std::string &file)
{
// FG: TODO: use VFS here!
std::ofstream out(file.c_str());
for (int i = 0; i < worldMapTiles.size(); i++)