Skip to content

Commit

Permalink
Custom DLL paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vs-shirokii committed Aug 9, 2024
1 parent 2730711 commit 89636c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Include/RTGL1/RTGL1.h
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,7 @@ typedef struct RgInterface

inline RgResult rgLoadLibraryAndCreate( const RgInstanceCreateInfo* pInfo,
RgBool32 useDebugBinary,
const char* customBinaryPath,
RgInterface* pOutInterface,
HMODULE* pOutDll )
{
Expand All @@ -1302,7 +1303,9 @@ inline RgResult rgLoadLibraryAndCreate( const RgInstanceCreateInfo* pInfo,

char rtglDllPath[ MAX_PATH ];
{
const char* dllPath = useDebugBinary ? "\\bin\\debug\\RTGL1.dll" : "\\bin\\RTGL1.dll";
const char* dllPath = customBinaryPath ? customBinaryPath
: useDebugBinary ? "\\bin\\debug\\RTGL1.dll"
: "\\bin\\RTGL1.dll";

if( strlen( pInfo->pOverrideFolderPath ) + strlen( dllPath ) >= MAX_PATH - 1 )
{
Expand Down

0 comments on commit 89636c7

Please sign in to comment.