File tree Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include " ModuleLookup.hpp"
2
+
3
+ #define WIN32_LEAN_AND_MEAN
4
+ #include < windows.h>
5
+
6
+ namespace XRay {
7
+ HMODULE LoadLibrary (const char *libraryFileName, bool log)
8
+ {
9
+ if (log)
10
+ Log (" Loading DLL:" , libraryFileName);
11
+ return ::LoadLibrary (libraryFileName);
12
+ }
13
+
14
+ void UnloadLibrary (HMODULE libraryHandle)
15
+ {
16
+ FreeLibrary (libraryHandle);
17
+ }
18
+
19
+ void *GetProcAddress (HMODULE libraryHandle, const char *procName)
20
+ {
21
+ return ::GetProcAddress (libraryHandle, procName);
22
+ }
23
+
24
+ }
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include " xrCore.h"
4
+
5
+ namespace XRay {
6
+ XRCORE_API HMODULE LoadLibrary (const char *libraryFileName, bool log = true );
7
+ XRCORE_API void UnloadLibrary (HMODULE libraryHandle);
8
+ XRCORE_API void *GetProcAddress (HMODULE libraryHandle, const char *procName);
9
+ }
Original file line number Diff line number Diff line change 376
376
<ClCompile Include =" Threading\ttapi.cpp" />
377
377
<ClCompile Include =" Threading\Lock.cpp" />
378
378
<ClCompile Include =" xrCore.cpp" />
379
+ <ClCompile Include =" ModuleLookup.cpp" />
379
380
<ClCompile Include =" xrDebugNew.cpp" />
380
381
<ClCompile Include =" xrMemory.cpp" />
381
382
<ClCompile Include =" xrMemory_align.cpp" />
508
509
<ClInclude Include =" Threading\Lock.hpp" />
509
510
<ClInclude Include =" vector.h" />
510
511
<ClInclude Include =" xrCore.h" />
512
+ <ClInclude Include =" ModuleLookup.hpp" />
511
513
<ClInclude Include =" Platform.h" />
512
514
<ClInclude Include =" xrDebug.h" />
513
515
<ClInclude Include =" xrDebug_macros.h" />
Original file line number Diff line number Diff line change 132
132
<ClCompile Include =" xrCore.cpp" >
133
133
<Filter >Kernel</Filter >
134
134
</ClCompile >
135
+ <ClCompile Include =" ModuleLookup.cpp" >
136
+ <Filter >Kernel</Filter >
137
+ </ClCompile >
135
138
<ClCompile Include =" _compressed_normal.cpp" >
136
139
<Filter >Math</Filter >
137
140
</ClCompile >
401
404
<ClInclude Include =" xrCore.h" >
402
405
<Filter >Kernel</Filter >
403
406
</ClInclude >
407
+ <ClInclude Include =" ModuleLookup.hpp" >
408
+ <Filter >Kernel</Filter >
409
+ </ClInclude >
404
410
<ClInclude Include =" Platform.h" >
405
411
<Filter >Kernel</Filter >
406
412
</ClInclude >
You can’t perform that action at this time.
0 commit comments