mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
large filesystem update. Filesysytem is now fully functional, everything should work.
- completely replaced CLodHandler, removed bitmaph and spriteh - replaced CLodStream in favour of CCompressedStream (2 new files) - renamed CResourceLoaderFactory and ResourceIndetifier to shorter names NOTES: - campaign loading is currently broken. Will fix. - I am going to remove several unused files in several days (e.g. LodHandler)
This commit is contained in:
@ -3,12 +3,11 @@
|
||||
|
||||
#include "CGeneralTextHandler.h"
|
||||
#include "CLodHandler.h"
|
||||
#include "../lib/Filesystem/CResourceLoader.h"
|
||||
#include "../lib/VCMI_Lib.h"
|
||||
#include "../lib/JsonNode.h"
|
||||
#include "GameConstants.h"
|
||||
|
||||
extern CLodHandler * bitmaph;
|
||||
|
||||
/*
|
||||
* CBuildingHandler.cpp, part of VCMI engine
|
||||
*
|
||||
@ -44,7 +43,10 @@ static CBuilding * readBg(std::string &buf, int& it)
|
||||
}
|
||||
void CBuildingHandler::loadBuildings()
|
||||
{
|
||||
std::string buf = bitmaph->getTextFile("BUILDING.TXT"), temp;
|
||||
auto textFile = CResourceHandler::get()->loadData(ResourceID("DATA/BUILDING.TXT"));
|
||||
std::string buf((char*)textFile.first.get(), textFile.second);
|
||||
|
||||
std::string temp;
|
||||
int it=0; //buf iterator
|
||||
|
||||
temp = readTo(buf,it,'\n');temp = readTo(buf,it,'\n');//read 2 lines of file info
|
||||
|
Reference in New Issue
Block a user