D
Deleted User
Guest
OP
Hey Guys.
So, looking at the DeSmuMe source I see this:
Now its commented out, but there is a texture dumper in there, further down it has this:
I did uncomment it of course, thinking it'd be that simple.
My thoughts on this are that theres a built in texture dumper in DeSmuMe, which isn't much of a surprise, but simply enabling it doesn't seem to do anything.
Thats all in texcache.cpp, nothing edited there, all default.
My question is, thats the only reference to DEBUG_TEXTURE_DUMP in the whole project, how am I supposed to dump the textures then? Theres no key, or shortcut or anything, nor do they get dumped as they load into memory.
Note:
I am aware there are various other methods to ripping textures from NDS games, and those work great, I'm mostly interested in understanding how this code works, and when its supposed to initiate.
I'm not much of a coder so chances are I'm just overlooking something stupidly simple here.
So, looking at the DeSmuMe source I see this:
Code:
//only dump this from ogl renderer. for now, softrasterizer creates things in an incompatible pixel format
//#define DEBUG_DUMP_TEXTURE
Now its commented out, but there is a texture dumper in there, further down it has this:
I did uncomment it of course, thinking it'd be that simple.
Code:
#if defined (DEBUG_DUMP_TEXTURE) && defined (WIN32)
#define DO_DEBUG_DUMP_TEXTURE
static void DebugDumpTexture(TexCacheItem* item)
{
static int ctr=0;
char fname[100];
sprintf(fname,"c:\\dump\\%d.bmp", ctr);
ctr++;
NDS_WriteBMP_32bppBuffer(item->sizeX,item->sizeY,item->decoded,fname);
}
#endif
My thoughts on this are that theres a built in texture dumper in DeSmuMe, which isn't much of a surprise, but simply enabling it doesn't seem to do anything.
Thats all in texcache.cpp, nothing edited there, all default.
My question is, thats the only reference to DEBUG_TEXTURE_DUMP in the whole project, how am I supposed to dump the textures then? Theres no key, or shortcut or anything, nor do they get dumped as they load into memory.
Note:
I am aware there are various other methods to ripping textures from NDS games, and those work great, I'm mostly interested in understanding how this code works, and when its supposed to initiate.
I'm not much of a coder so chances are I'm just overlooking something stupidly simple here.