28#ifndef HPL_LOWLEVELSYSTEM_H
29#define HPL_LOWLEVELSYSTEM_H
31#include "hpl1/engine/libraries/angelscript/angelscript.h"
32#include "hpl1/engine/system/MemoryManager.h"
33#include "hpl1/engine/system/SystemTypes.h"
39#ifdef UPDATE_TIMING_ENABLED
40#define START_TIMING_EX(x, y) \
41 LogUpdate("Updating %s in file %s at line %d\n", x, __FILE__, __LINE__); \
42 unsigned int y##_lTime = GetApplicationTime();
43#define START_TIMING(x) \
44 LogUpdate("Updating %s in file %s at line %d\n", #x, __FILE__, __LINE__); \
45 unsigned int x##_lTime = GetApplicationTime();
46#define STOP_TIMING(x) LogUpdate(" Time spent: %d ms\n", GetApplicationTime() - x##_lTime);
47#define START_TIMING_TAB(x) \
48 LogUpdate("\tUpdating %s in file %s at line %d\n", #x, __FILE__, __LINE__); \
49 unsigned int x##_lTime = GetApplicationTime();
50#define STOP_TIMING_TAB(x) LogUpdate("\t Time spent: %d ms\n", GetApplicationTime() - x##_lTime);
52#define START_TIMING_EX(x, y)
53#define START_TIMING(x)
55#define START_TIMING_TAB(x)
56#define STOP_TIMING_TAB(x)
61extern void SetLogFile(
const tWString &File);
62extern void Error(
const char *fmt, ...);
63extern void Warning(
const char *fmt, ...);
64extern void Log(
const char *fmt, ...);
66extern void SetUpdateLogActive(
bool abX);
67extern void LogUpdate(
const char *fmt, ...);
69extern void CreateMessageBoxW(
const wchar_t *caption,
const wchar_t *fmt, ...);
70extern void CreateMessageBoxW(eMsgBoxType eType,
const wchar_t *caption,
const wchar_t *fmt, ...);
72extern void OpenBrowserWindow(
const tWString &URL);
74extern void CopyTextToClipboard(
const tWString &text);
75extern tWString LoadTextFromClipboard();
77extern tWString GetSystemSpecialPath(eSystemPath pathType);
79extern bool FileExists(
const tWString &fileName);
80extern void RemoveFile(
const tWString &fileName);
81extern bool CloneFile(
const tWString &srcFileName,
const tWString &destFileName,
83extern bool CreateFolder(
const tWString &path);
84extern bool FolderExists(
const tWString &path);
85extern bool IsFileLink(
const tWString &path);
86extern bool LinkFile(
const tWString &pointsTo,
const tWString &link);
87extern bool RenameFile(
const tWString &from,
const tWString &to);
88extern cDate FileModifiedDate(
const tWString &filePath);
89extern cDate FileCreationDate(
const tWString &filePath);
91extern void SetWindowCaption(
const tString &name);
93extern unsigned long GetApplicationTime();
137 void sleep(
const unsigned int millisecs);
Definition: angelscript.h:639
Definition: low_level_system.h:95
bool addScriptVar(const tString &varDecl, void *var)
bool addScriptFunc(const tString &funcDecl, asGENFUNC_t func, int callConv)
void sleep(const unsigned int millisecs)
iScript * createScript(const tString &name)
Definition: SystemTypes.h:154