Commit 1ba8bb77 authored by Jonas Stienen's avatar Jonas Stienen
Browse files

Linux compat for DLL

parent 34730c66
......@@ -273,13 +273,14 @@ EXTERN_C IMAGE_DOS_HEADER __ImageBase;
std::string VACore::GetCoreLibFilePath()
{
CHAR pszPath[ MAX_PATH + 1 ] = { 0 };
#ifdef WIN32
CHAR pszPath[ MAX_PATH + 1 ] = { 0 };
GetModuleFileNameA( ( HINSTANCE ) &__ImageBase, pszPath, _countof( pszPath ) );
return std::string( pszPath );
#else
VA_EXCEPT2( NOT_IMPLEMENTED, "This function is not implemented for your platform. Sorry." );
return "";
#endif // WIN32
return std::string( pszPath );
}
CVACoreImpl::CVACoreImpl( const CVAStruct& oArgs )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment