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) 54 #define STOP_TIMING(x) 55 #define START_TIMING_TAB(x) 56 #define STOP_TIMING_TAB(x) 61 extern void SetLogFile(
const tWString &File);
62 extern void Error(
const char *fmt, ...);
63 extern void Warning(
const char *fmt, ...);
64 extern void Log(
const char *fmt, ...);
66 extern void SetUpdateLogActive(
bool abX);
67 extern void LogUpdate(
const char *fmt, ...);
69 extern void CreateMessageBoxW(
const wchar_t *caption,
const wchar_t *fmt, ...);
70 extern void CreateMessageBoxW(eMsgBoxType eType,
const wchar_t *caption,
const wchar_t *fmt, ...);
72 extern void OpenBrowserWindow(
const tWString &URL);
74 extern void CopyTextToClipboard(
const tWString &text);
75 extern tWString LoadTextFromClipboard();
77 extern tWString GetSystemSpecialPath(eSystemPath pathType);
79 extern bool FileExists(
const tWString &fileName);
80 extern void RemoveFile(
const tWString &fileName);
81 extern bool CloneFile(
const tWString &srcFileName,
const tWString &destFileName,
83 extern bool CreateFolder(
const tWString &path);
84 extern bool FolderExists(
const tWString &path);
85 extern bool IsFileLink(
const tWString &path);
86 extern bool LinkFile(
const tWString &pointsTo,
const tWString &link);
87 extern bool RenameFile(
const tWString &from,
const tWString &to);
88 extern cDate FileModifiedDate(
const tWString &filePath);
89 extern cDate FileCreationDate(
const tWString &filePath);
91 extern void SetWindowCaption(
const tString &name);
93 extern unsigned long GetApplicationTime();
137 void sleep(
const unsigned int millisecs);
146 #endif // HPL_LOWLEVELSYSTEM_H
Definition: SystemTypes.h:154
void sleep(const unsigned int millisecs)
Definition: low_level_system.h:95
bool addScriptVar(const tString &varDecl, void *var)
Definition: angelscript.h:639
iScript * createScript(const tString &name)
bool addScriptFunc(const tString &funcDecl, asGENFUNC_t func, int callConv)