Files
firestorm/Gameleap/code/mw4/Libraries/ElementProxies/ElementInfo.cpp
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

59 lines
1.3 KiB
C++

#include "ElementProxyHeaders.hpp"
#include <Proxies\Info.hpp>
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
MLRTexturePoolProxy::GetInfo(
GetInfoProcess *process
)
{
Check_Object(this);
Check_Object(process);
//
//---------------------------------------
// Make sure that the process says its OK
//---------------------------------------
//
process->InfoCallback(GetInfoProcess::InfoTextureLibraryMode);
if (!process->continueProcess)
return;
//
//-------------
// Get the info
//-------------
//
MString name;
GetName(&name);
process->TellMyName(&name, GetInfoProcess::InfoTextureLibraryMode);
process->TalkAboutATexLibrary(texturePath, ".tga");
//
//------------------------------------------------------------------
// For each texture, get the info
//------------------------------------------------------------------
//
TextureProxy *other_texture = UseFirstTextureProxy();
while (other_texture)
{
Check_Object(other_texture);
other_texture->GetInfo(process);
TextureProxy *next = other_texture->UseNextTextureProxyInLibrary();
other_texture->DetachReference();
if (process->continueProcess)
other_texture = next;
else
{
if (other_texture)
other_texture->DetachReference();
break;
}
}
}