Show
Ignore:
Timestamp:
11/19/08 13:37:14 (17 years ago)
Author:
yumileroy
Message:

[svn] * Merge CLI Commands with regular commands and give them level4 access. sec_console. Source mangos - thanks to ogeraisi for the amalgamated patch.
* Redid/Fixed/Added some lang strings.
* As usual remember this is a trunk rev so stability only guaranteed on northern countries of Mars and western parts of Pluto. No warranties outside the solar system, sorry :( . Check with your local government or dictator on regulations regarding export.

Original author: KingPin?
Date: 2008-10-26 13:32:42-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/PlayerDump.h

    r102 r112  
    7474}; 
    7575 
     76enum DumpReturn 
     77{ 
     78        DUMP_SUCCESS, 
     79        DUMP_FILE_OPEN_ERROR, 
     80        DUMP_TOO_MANY_CHARS, 
     81        DUMP_UNEXPECTED_END, 
     82        DUMP_FILE_BROKEN, 
     83}; 
     84 
    7685class PlayerDump 
    7786{ 
     
    8695 
    8796        std::string GetDump(uint32 guid); 
    88         bool WriteDump(std::string file, uint32 guid); 
     97        DumpReturn WriteDump(std::string file, uint32 guid); 
    8998    private: 
    9099        typedef std::set<uint32> GUIDs; 
    91100 
    92         bool DumpTable(std::string& dump, uint32 guid, char const*tableFrom, char const*tableTo, DumpTableType type); 
     101        void DumpTable(std::string& dump, uint32 guid, char const*tableFrom, char const*tableTo, DumpTableType type); 
    93102        std::string GenerateWhereStr(char const* field, GUIDs const& guids, GUIDs::const_iterator& itr); 
    94103        std::string GenerateWhereStr(char const* field, uint32 guid); 
     
    105114        PlayerDumpReader() {} 
    106115 
    107         bool LoadDump(std::string file, uint32 account, std::string name, uint32 guid); 
     116        DumpReturn LoadDump(std::string file, uint32 account, std::string name, uint32 guid); 
    108117}; 
    109118