Ares
Public Member Functions

MapSnapshotCommandClass Class Reference

#include <src/Commands/MapSnapshot.h>

List of all members.

Public Member Functions

virtual ~MapSnapshotCommandClass ()
virtual const char * GetName ()
virtual const wchar_t * GetUIName ()
virtual const wchar_t * GetUICategory ()
virtual const wchar_t * GetUIDescription ()
virtual void Execute (DWORD dwUnk)
 MapSnapshotCommandClass ()

Constructor & Destructor Documentation

virtual MapSnapshotCommandClass::~MapSnapshotCommandClass ( ) [inline, virtual]
{}
MapSnapshotCommandClass::MapSnapshotCommandClass ( ) [inline]
{}

Member Function Documentation

virtual void MapSnapshotCommandClass::Execute ( DWORD  dwUnk) [inline, virtual]
        {
                int i = 0;
                
                FILE* F = NULL;
                char buffer[0x10] = "\0";

                do
                {
                        if(F)fclose(F);

                        _snprintf(buffer, 16, "Map%04d.yrm", i++);
                        F = fopen(buffer, "rb");
                }while(F != NULL);

                DEBUGLOG("\t\t%s", buffer);

                char* pBuffer = buffer;

                SET_REG8(dl, 0);
                SET_REG32(ecx, pBuffer);
                CALL(0x687CE0);

                wchar_t msg[0x40] = L"\0";
                wsprintfW(msg, L"Map Snapshot saved as '%hs'.", buffer);
                MessageListClass::Instance->PrintMessage(msg);
        }
virtual const char* MapSnapshotCommandClass::GetName ( ) [inline, virtual]
                { return "MapSnapshot"; }
virtual const wchar_t* MapSnapshotCommandClass::GetUICategory ( ) [inline, virtual]
                { return L"Development"; }
virtual const wchar_t* MapSnapshotCommandClass::GetUIDescription ( ) [inline, virtual]
                { return L"Saves the currently played map."; }
virtual const wchar_t* MapSnapshotCommandClass::GetUIName ( ) [inline, virtual]
                { return L"Map Snapshot"; }

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines