Files
firestorm/Gameleap/code/mw4/Libraries/MAXProxies/MAXCleanHierarch.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

52 lines
1.2 KiB
C++

#include "MAXProxyHeaders.hpp"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
MAXCleanHierarchyProcess::MAXCleanHierarchyProcess(Stuff::NotationFile *data_file,
Interface *i,
int p,
bool bSuppress,
LPVOID fcn
):
CleanHierarchyProcess(data_file,bSuppress,fcn),
iPointer(i),
progress(p)
{
Check_Object(data_file);
Page *page = data_file->FindPage("CleanHierarchy");
if (page) {
page->GetEntry("Verbose", &suppress);
suppress = !suppress;
}
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
MAXCleanHierarchyProcess::CleanHierarchyCallback(Proxies::GenericProxy *proxy)
{
Check_Object(this);
Check_Object(proxy);
//
//----------------------------
// Print the name of the proxy
//----------------------------
//
if (!suppress)
{
MString name;
char buffer[200];
if (proxy->GetName(&name))
sprintf(buffer, "Cleaning %s...", static_cast<char*>(name));
else
sprintf(
buffer,
"Cleaning <%s>...",
static_cast<const char*>(proxy->GetClassString())
);
iPointer->ProgressUpdate(++progress,false,_T(buffer));
}
}