From: Anders R. <ma...@us...> - 2003-02-12 23:14:00
|
Update of /cvsroot/planeshift/planeshift/src/client In directory sc8-pr-cvs1:/tmp/cvs-serv7497/src/client Modified Files: psengine.cpp Log Message: - Fixed the static / dynamic config file code. Added a domain for the dynamic planeshift.cfg file and connected that file to the dynamic domain in the configuration manager. - Added storing of window position for the player (target) window. Index: psengine.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/psengine.cpp,v retrieving revision 1.238 retrieving revision 1.239 diff -C2 -d -r1.238 -r1.239 *** psengine.cpp 7 Feb 2003 06:58:43 -0000 1.238 --- psengine.cpp 12 Feb 2003 23:13:26 -0000 1.239 *************** *** 74,78 **** //#include "scripting/cscripting.h" ! #define APPNAME "Planeshift Molecular Blue" // ---------------------------------------------------------------------------- --- 74,79 ---- //#include "scripting/cscripting.h" ! #define APPNAME "Planeshift Molecular Blue" ! #define CONFIGFILENAME "/this/planeshift.cfg" // ---------------------------------------------------------------------------- *************** *** 409,412 **** --- 410,425 ---- void psEngine::QuitClient() { + // TODO: Add a function in aws that loop through all windows and save them. + psCommunicationWindow * commWin = (psCommunicationWindow*)psaws->GetPSWindow("Communication Window"); + if (commWin) + commWin->Save(); + psPlayerWindow * playerWin = (psPlayerWindow*)psaws->GetPSWindow("Player Window"); + if (playerWin) + playerWin->Save(); + + csRef<iConfigManager> cfg (CS_QUERY_REGISTRY (object_reg, iConfigManager)); + if (cfg) + cfg->Save(); + netmanager->Disconnect(); queue->GetEventOutlet()->Broadcast (cscmdQuit); *************** *** 794,798 **** // Do some basic CS init stuff iObjectRegistry *object_reg = InitCS(argc, argv, "/this/psclient.cfg", ! "/this/planeshift.cfg",0); pslog::Initialize (object_reg); --- 807,811 ---- // Do some basic CS init stuff iObjectRegistry *object_reg = InitCS(argc, argv, "/this/psclient.cfg", ! CONFIGFILENAME); pslog::Initialize (object_reg); |