Misc: Purge unused code and report startup error to host
This commit is contained in:
@ -101,6 +101,15 @@ bool DynamicLibrary::Open(const char* filename, Error* error)
|
||||
#endif
|
||||
}
|
||||
|
||||
void DynamicLibrary::Adopt(void* handle)
|
||||
{
|
||||
AssertMsg(handle, "Handle is valid");
|
||||
|
||||
Close();
|
||||
|
||||
m_handle = handle;
|
||||
}
|
||||
|
||||
void DynamicLibrary::Close()
|
||||
{
|
||||
if (!IsOpen())
|
||||
|
||||
Reference in New Issue
Block a user