* few script changes; added new func "ScriptExists". * started an extractor tool; using StormLib (thx to Ladislaw Zezula!). for now convert some dbc files to scp. more stuff will follow. * some changes to the realm/world connect code; still needs a rewrite. * support conf parameters for GUI (check conf/gui.conf/gui.conf[.default] )
21 lines
614 B
C++
21 lines
614 B
C++
#ifndef _TOOLS_H
|
|
#define _TOOLS_H
|
|
|
|
#include "common.h"
|
|
|
|
#define SETBIT(var,bit) ( (var)|=(1<<(bit)) )
|
|
#define UNSETBIT(var,bit) ( (var)&=(~(1<<(bit))) )
|
|
#define HASBIT(var,bit) ( (var)&(1<<(bit)) )
|
|
|
|
void printchex(std::string,bool);
|
|
void printchex(char *in, uint32 len, bool);
|
|
std::string stringToUpper(std::string);
|
|
std::string stringToLower(std::string);
|
|
std::string toString(uint64);
|
|
std::string getDateString(void);
|
|
uint64 toInt(std::string);
|
|
std::string toHexDump(uint8* array,uint32 size,bool spaces=true);
|
|
std::deque<std::string> GetFileList(std::string);
|
|
bool FileExists(char*);
|
|
|
|
#endif |