Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Util.cpp File Reference
#include "precompiled.h"
#include "ps/Util.h"
#include "lib/allocators/shared_ptr.h"
#include "lib/tex/tex.h"
#include "ps/CLogger.h"
#include "ps/Filesystem.h"
#include "ps/Pyrogenesis.h"
#include <iomanip>
Include dependency graph for Util.cpp:

Functions

static const wchar_t * HardcodedErrorString (int err)
 
const wchar_t * ErrorString (int err)
 
CStr GetStatusAsString (Status status)
 
Status tex_write (Tex *t, const VfsPath &filename)
 
OsPath createDateIndexSubdirectory (const OsPath &parentDir)
 Return an unused directory, based on date and index (for example 2016-02-09_0001) More...
 
std::string Hexify (const std::string &s)
 
std::string Hexify (const u8 *s, size_t length)
 

Function Documentation

◆ createDateIndexSubdirectory()

OsPath createDateIndexSubdirectory ( const OsPath parentDir)

Return an unused directory, based on date and index (for example 2016-02-09_0001)

◆ ErrorString()

const wchar_t * ErrorString ( int  err)

◆ GetStatusAsString()

CStr GetStatusAsString ( Status  status)

◆ HardcodedErrorString()

static const wchar_t * HardcodedErrorString ( int  err)
static

◆ Hexify() [1/2]

std::string Hexify ( const std::string &  s)

◆ Hexify() [2/2]

std::string Hexify ( const u8 s,
size_t  length 
)

◆ tex_write()

Status tex_write ( Tex t,
const VfsPath filename 
)