[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src globals.hxx,1.1,1.2 pingus_main.cxx,1
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src globals.hxx,1.1,1.2 pingus_main.cxx,1.3,1.4 pingus_resource.cxx,1.8,1.9 |
Date: |
24 Jun 2002 12:09:24 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv29589
Modified Files:
globals.hxx pingus_main.cxx pingus_resource.cxx
Log Message:
added DEBUG_PINGUS_RESOURCES
Index: globals.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/globals.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- globals.hxx 12 Jun 2002 19:09:37 -0000 1.1
+++ globals.hxx 24 Jun 2002 12:09:22 -0000 1.2
@@ -83,6 +83,7 @@
PINGUS_DEBUG_EDITOR = (1 << 5),
PINGUS_DEBUG_BLITTER = (1 << 6),
PINGUS_DEBUG_TRANSLATOR = (1 << 7),
+ PINGUS_DEBUG_RESOURCES = (1 << 8),
PINGUS_DEBUG_ALL = (~0)
};
Index: pingus_main.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingus_main.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- pingus_main.cxx 21 Jun 2002 07:45:35 -0000 1.3
+++ pingus_main.cxx 24 Jun 2002 12:09:22 -0000 1.4
@@ -473,6 +473,10 @@
{
pingus_debug_flags |= PINGUS_DEBUG_TRANSLATOR;
}
+ else if (strcmp (optarg, "resources") == 0)
+ {
+ pingus_debug_flags |= PINGUS_DEBUG_RESOURCES;
+ }
else
{
std::cout << "PingusMain: Unhandled debug flag: " << optarg <<
std::endl;
@@ -541,7 +545,7 @@
" --maintainer-mode Enables some features, only interesting
programmers\n"
" --enable-bg-manipulation Enables color manipulation of level
backgrounds\n"
" --debug OPTION Enable the output of debugging infos,
possible\n"
- " OPTION's are tiles, gametime, actions,
sound\n"
+ " OPTION's are tiles, gametime, actions,
sound, resources\n"
" -t, --speed SPEED Set the game speed (0=fastest,
>0=slower)\n"
" -b, --print-fps Prints the fps to stdout\n"
" -i, --enable-gimmicks Enable some buggy development stuff\n"
Index: pingus_resource.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingus_resource.cxx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- pingus_resource.cxx 23 Jun 2002 19:16:41 -0000 1.8
+++ pingus_resource.cxx 24 Jun 2002 12:09:22 -0000 1.9
@@ -228,7 +228,7 @@
void
PingusResource::cleanup ()
{
- pout << "XXXX PingusResource::cleanup ()" << std::endl;
+ pout(PINGUS_DEBUG_RESOURCES) << "XXXX PingusResource::cleanup ()" <<
std::endl;
for (std::map<ResDescriptor, CL_Surface>::iterator i = surface_map.begin ();
i != surface_map.end (); ++i)
@@ -236,15 +236,15 @@
if (i->first.type == ResDescriptor::RD_FILE
&& i->second.get_reference_count () == 1)
{
- pout << "XXX Releasing File: " << i->first
- << " => " << i->second.get_reference_count () << std::endl;
+ pout(PINGUS_DEBUG_RESOURCES) << "XXX Releasing File: " << i->first
+ << " => " <<
i->second.get_reference_count () << std::endl;
surface_map.erase(i);
}
else if (i->first.type == ResDescriptor::RD_RESOURCE
&& i->second.get_reference_count () == 2)
{
- pout << "XXX Releasing Resource : " << i->first
- << " => " << i->second.get_reference_count () << std::endl;
+ pout(PINGUS_DEBUG_RESOURCES) << "XXX Releasing Resource : " <<
i->first
+ << " => " <<
i->second.get_reference_count () << std::endl;
surface_map.erase(i);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src globals.hxx,1.1,1.2 pingus_main.cxx,1.3,1.4 pingus_resource.cxx,1.8,1.9,
torangan <=