mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Filesystem handling is now more flexible
- removed CResourceLoader class in favor of one that implements resource loader interface - removed global pool of files, in favour of more dynamic approach - renamed some files to match current situation All these changes are needed mostly for future mod manager + .zip support
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "StdInc.h"
|
||||
#include "CBinaryReader.h"
|
||||
|
||||
#include <SDL_endian.h>
|
||||
#include "CInputStream.h"
|
||||
|
||||
@ -12,9 +13,7 @@ CData readLE(CData data)
|
||||
std::reverse(dataPtr, dataPtr + sizeof(data));
|
||||
return data;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
template <typename CData>
|
||||
CData readLE(CData data)
|
||||
{
|
||||
@ -24,12 +23,10 @@ CData readLE(CData data)
|
||||
|
||||
CBinaryReader::CBinaryReader() : stream(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CBinaryReader::CBinaryReader(CInputStream * stream) : stream(stream)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CInputStream * CBinaryReader::getStream()
|
||||
@ -97,7 +94,6 @@ void CBinaryReader::skip(int count)
|
||||
stream->skip(count);
|
||||
}
|
||||
|
||||
|
||||
std::string CBinaryReader::getEndOfStreamExceptionMsg(long bytesToRead) const
|
||||
{
|
||||
std::stringstream ss;
|
||||
|
Reference in New Issue
Block a user