More OutputDebugString() -> DebugTrace changes.

This commit is contained in:
wrenczes@gmail.com
2010-10-06 10:45:29 +00:00
parent 291a0d0312
commit 5595c0d3d8
4 changed files with 21 additions and 26 deletions

View File

@@ -5,6 +5,7 @@
#include <math.h>
#include "../include/config.h"
#include "../include/DebugRoutines.h"
#include "../include/GameStateMenu.h"
#include "../include/MenuItem.h"
#include "../include/GameOptions.h"
@@ -415,12 +416,10 @@ void GameStateMenu::Update(float dt)
if (!nextDirectory(RESPATH"/sets/","_cards.dat")){
//Remove temporary translations
Translator::GetInstance()->tempValues.clear();
//Debug
#ifdef _DEBUG
char buf[4096];
sprintf(buf, "\n==\nTotal MTGCard: %lu\nTotal CardPrimitives: %lu\n==\n", (long unsigned)mParent->collection->collection.size(), (long unsigned)mParent->collection->primitives.size());
OutputDebugString(buf);
#endif
DebugTrace(std::endl << "==" << std::endl <<
"Total MTGCards: " << mParent->collection->collection.size() << std::endl <<
"Total CardPrimitives: " << mParent->collection->primitives.size() << std::endl << "==");
//Force default, if necessary.
if(options[Options::ACTIVE_PROFILE].str == "")
@@ -635,12 +634,9 @@ void GameStateMenu::Render()
void GameStateMenu::ButtonPressed(int controllerId, int controlId)
{
WFont * mFont = resources.GetWFont(Constants::MENU_FONT);
#if defined (WIN32) || defined (LINUX)
char buf[4096];
sprintf(buf, "cnotrollerId: %i", controllerId);
OutputDebugString(buf);
#endif
WFont * mFont = resources.GetWFont(Constants::MENU_FONT);
DebugTrace("GameStateMenu: controllerId " << controllerId << " selected");
switch (controllerId){
case MENU_LANGUAGE_SELECTION:
setLang(controlId);