[Jsmooth-cvs] jsmooth/skeletons/consolewrapper main.cpp,1.19,1.20
Status: Beta
Brought to you by:
reyes
From: Rodrigo R. <re...@us...> - 2007-05-13 19:51:04
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/consolewrapper In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10077 Modified Files: main.cpp Log Message: using ResourceManager::getBooleanProperty instead of a kludgy int parsing Index: main.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/consolewrapper/main.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** main.cpp 1 May 2007 19:40:16 -0000 1.19 --- main.cpp 13 May 2007 19:51:00 -0000 1.20 *************** *** 62,72 **** // // sets up the debug mode, if requested ! std::string dodebug = globalResMan->getProperty("skel_Debug"); ! if (StringUtils::parseInt(dodebug) != 0) { enableDebug = true; globalResMan->printDebug(); } ! string newcurdir = globalResMan->getCurrentDirectory(); SetCurrentDirectory(newcurdir.c_str()); --- 62,72 ---- // // sets up the debug mode, if requested ! ! if (globalResMan->getBooleanProperty("skel_Debug")) { enableDebug = true; globalResMan->printDebug(); } ! string newcurdir = globalResMan->getCurrentDirectory(); SetCurrentDirectory(newcurdir.c_str()); *************** *** 90,95 **** } ! int waitkey = atoi(globalResMan->getProperty("skel_PressKey").c_str()); ! if (waitkey != 0) { system("PAUSE"); --- 90,94 ---- } ! if (globalResMan->getBooleanProperty("skel_PressKey")) { system("PAUSE"); |