Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/GameInterface/GameLoop.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
void (*Atlas_StartWindow)(const wchar_t* type); | void (*Atlas_StartWindow)(const wchar_t* type); | ||||
void (*Atlas_SetDataDirectory)(const wchar_t* path); | void (*Atlas_SetDataDirectory)(const wchar_t* path); | ||||
void (*Atlas_SetConfigDirectory)(const wchar_t* path); | void (*Atlas_SetConfigDirectory)(const wchar_t* path); | ||||
void (*Atlas_SetMessagePasser)(MessagePasser*); | void (*Atlas_SetMessagePasser)(MessagePasser*); | ||||
void (*Atlas_GLSetCurrent)(void* cavas); | void (*Atlas_GLSetCurrent)(void* cavas); | ||||
void (*Atlas_GLSwapBuffers)(void* canvas); | void (*Atlas_GLSwapBuffers)(void* canvas); | ||||
void (*Atlas_NotifyEndOfFrame)(); | void (*Atlas_NotifyEndOfFrame)(); | ||||
void (*Atlas_DisplayError)(const wchar_t* text, size_t flags); | void (*Atlas_DisplayError)(const wchar_t* text, size_t flags); | ||||
void (*Atlas_ReportError)(); | |||||
namespace AtlasMessage | namespace AtlasMessage | ||||
{ | { | ||||
void* (*ShareableMallocFptr)(size_t); | void* (*ShareableMallocFptr)(size_t); | ||||
void (*ShareableFreeFptr)(void*); | void (*ShareableFreeFptr)(void*); | ||||
} | } | ||||
MessagePasser* AtlasMessage::g_MessagePasser = NULL; | MessagePasser* AtlasMessage::g_MessagePasser = NULL; | ||||
▲ Show 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | try | ||||
dll.LoadSymbol("Atlas_StartWindow", Atlas_StartWindow); | dll.LoadSymbol("Atlas_StartWindow", Atlas_StartWindow); | ||||
dll.LoadSymbol("Atlas_SetMessagePasser", Atlas_SetMessagePasser); | dll.LoadSymbol("Atlas_SetMessagePasser", Atlas_SetMessagePasser); | ||||
dll.LoadSymbol("Atlas_SetDataDirectory", Atlas_SetDataDirectory); | dll.LoadSymbol("Atlas_SetDataDirectory", Atlas_SetDataDirectory); | ||||
dll.LoadSymbol("Atlas_SetConfigDirectory", Atlas_SetConfigDirectory); | dll.LoadSymbol("Atlas_SetConfigDirectory", Atlas_SetConfigDirectory); | ||||
dll.LoadSymbol("Atlas_GLSetCurrent", Atlas_GLSetCurrent); | dll.LoadSymbol("Atlas_GLSetCurrent", Atlas_GLSetCurrent); | ||||
dll.LoadSymbol("Atlas_GLSwapBuffers", Atlas_GLSwapBuffers); | dll.LoadSymbol("Atlas_GLSwapBuffers", Atlas_GLSwapBuffers); | ||||
dll.LoadSymbol("Atlas_NotifyEndOfFrame", Atlas_NotifyEndOfFrame); | dll.LoadSymbol("Atlas_NotifyEndOfFrame", Atlas_NotifyEndOfFrame); | ||||
dll.LoadSymbol("Atlas_DisplayError", Atlas_DisplayError); | dll.LoadSymbol("Atlas_DisplayError", Atlas_DisplayError); | ||||
dll.LoadSymbol("Atlas_ReportError", Atlas_ReportError); | |||||
dll.LoadSymbol("ShareableMalloc", ShareableMallocFptr); | dll.LoadSymbol("ShareableMalloc", ShareableMallocFptr); | ||||
dll.LoadSymbol("ShareableFree", ShareableFreeFptr); | dll.LoadSymbol("ShareableFree", ShareableFreeFptr); | ||||
} | } | ||||
catch (PSERROR_DllLoader&) | catch (PSERROR_DllLoader&) | ||||
{ | { | ||||
debug_warn(L"Failed to initialise DLL"); | debug_warn(L"Failed to initialise DLL"); | ||||
return false; | return false; | ||||
} | } | ||||
Show All 38 Lines |
Wildfire Games · Phabricator