4
class MapSnapshotCommandClass : public CommandClass
8
virtual ~MapSnapshotCommandClass(){}
11
virtual const char* GetName()
12
{ return "MapSnapshot"; }
14
virtual const wchar_t* GetUIName()
15
{ return L"Map Snapshot"; }
17
virtual const wchar_t* GetUICategory()
18
{ return L"Development"; }
20
virtual const wchar_t* GetUIDescription()
21
{ return L"Saves the currently played map."; }
23
virtual void Execute(DWORD dwUnk)
28
char buffer[0x10] = "\0";
34
_snprintf(buffer, 16, "Map%04d.yrm", i++);
35
F = fopen(buffer, "rb");
38
DEBUGLOG("\t\t%s", buffer);
40
char* pBuffer = buffer;
43
SET_REG32(ecx, pBuffer);
46
wchar_t msg[0x40] = L"\0";
47
wsprintfW(msg, L"Map Snapshot saved as '%hs'.", buffer);
48
MessageListClass::PrintMessage(msg);
52
MapSnapshotCommandClass(){}