[Bastion-cvs] bastion/src/interface LoadingScreen.cpp,1.3,1.4
Brought to you by:
jacek_kolodziej
|
From: Paweł Kęp. <t_...@us...> - 2004-07-14 23:18:39
|
Update of /cvsroot/bastion/bastion/src/interface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32042/src/interface Modified Files: LoadingScreen.cpp Log Message: - dodanie wczytywania i zapisywania Configuration (nie wiem nawet to sie skompiluje, ale musze przeinstalowac Linuxa i wtedy bede mogl dzialac nico bardziej interaktywnie) Index: LoadingScreen.cpp =================================================================== RCS file: /cvsroot/bastion/bastion/src/interface/LoadingScreen.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** LoadingScreen.cpp 30 Jun 2004 18:49:30 -0000 1.3 --- LoadingScreen.cpp 14 Jul 2004 23:18:30 -0000 1.4 *************** *** 17,20 **** --- 17,22 ---- #include "interface/gui/puImage.h" + // Pawel: dodane przeze mnie + #include "save/Configuration.h" #include "interface/GameView.h" *************** *** 29,32 **** --- 31,35 ---- #include "interface/utils/SoundManager.h" + Configuration *_config; GameView *_gv; World *_world; *************** *** 135,138 **** --- 138,143 ---- void* LoadingScreen::loadLevel(void *levelName) { + // Pawel: dodane przez mnie + _config = Configuration::load(); // laczenie swiata i wizualizacji *************** *** 158,163 **** --- 163,175 ---- std::cout << " bastion.cpp: cleaning up \n"; + // Pawel: dodane przeze mnie + _config->save(); + delete _world; delete _gv; + + // Pawel: dodane przeze mnie + delete _config; + std::cout << "Bastion pre2END - bye!\n" << SDL_GetError() << std::endl; VideoMode::get()->close(); |