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.
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#include "MAXProxyHeaders.hpp"
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
//
|
|
MAXCopyProcess::MAXCopyProcess(
|
|
Stuff::NotationFile *data_file,
|
|
Interface *i,
|
|
int p,
|
|
bool bSuppress,
|
|
LPVOID fcn
|
|
):
|
|
CopyProcess(data_file,bSuppress,fcn),
|
|
iPointer(i),
|
|
progress(p)
|
|
{
|
|
Check_Object(data_file);
|
|
|
|
Page *page = data_file->FindPage("Copy");
|
|
if (page) {
|
|
page->GetEntry("Verbose", &suppress);
|
|
suppress = !suppress;
|
|
}
|
|
}
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
//
|
|
void
|
|
MAXCopyProcess::CopyCallback(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, "Copying %s ", static_cast<char*>(name));
|
|
else
|
|
sprintf(
|
|
buffer,
|
|
"Copying <%s>...",
|
|
static_cast<const char*>(proxy->GetClassString())
|
|
);
|
|
iPointer->ProgressUpdate(++progress,false,_T(buffer));
|
|
}
|
|
}
|