1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

* (hopefully) full reading of h3c

* minor changes
This commit is contained in:
mateuszb
2010-02-12 15:04:01 +00:00
parent e79507ab0d
commit 8637b021cc
16 changed files with 223 additions and 69 deletions

View File

@@ -48,7 +48,7 @@ DLL_EXPORT void initDLL(CConsoleHandler *Console, std::ostream *Logfile)
} HANDLE_EXCEPTION
}
DLL_EXPORT void loadToIt(std::string &dest, std::string &src, int &iter, int mode)
DLL_EXPORT void loadToIt(std::string &dest, const std::string &src, int &iter, int mode)
{
switch(mode)
{
@@ -156,7 +156,7 @@ DLL_EXPORT void loadToIt(std::string &dest, std::string &src, int &iter, int mod
}
DLL_EXPORT void loadToIt(si32 &dest, std::string &src, int &iter, int mode)
DLL_EXPORT void loadToIt(si32 &dest, const std::string &src, int &iter, int mode)
{
std::string pom;
loadToIt(pom,src,iter,mode);
@@ -247,3 +247,10 @@ LibClasses::LibClasses()
//init pointers to handlers
makeNull();
}
void LibClasses::callWhenDeserializing()
{
generaltexth = new CGeneralTextHandler;
generaltexth->load();
arth->loadArtifacts(true);
}