AnyUnitSize, part 2. New loader for game data.
I have improved a process of loading game data. Now the loading process is incapsulated by cLoader class. It loads data in a background thread. Interaction with cLoader is done through SDL events.
cLoader got its initial support for loading mods. Though, most of mod support is still in AnyUnitSize branch. cLoader loads mods by iteratively calling cLoader::loadFolder(const char* path) method.
MakeLog function is changed. Now it is cLoader::writeConsole method. And
it has additional argument increment
. It can specify whether we need
to write to the same line, or to the next. It makes generating text for
loading screen much easier.