Reputation: 31
Trying to implement hasp protection in my Unity project, I put dlls file in Plugins folder it include: hasp_net_standard.dll libapidsp_linux_x86_64.so libhasp_linux_x86_64_xxxxx.a libhasp_linux_x86_64_xxxxx.so when i run my application this code started
public void Init()
{
try
{
string libPath = Path.Combine(Application.dataPath, "Plugins", "libhasp_linux_x86_64_27745.so");
Debug.Log(libPath);
_hasp = new Hasp();
_hasp.SetLibPath(libPath);
}
catch(Exception e)
{
Debug.LogError(e);
}
}
And after init i try to verify key by doing this
public bool VerifyKey()
{
try
{
var status = _hasp.Login(vendorCode);
Debug.Log("Verification is sucseed with status: " + status);
if (status == HaspStatus.StatusOk)
{
Debug.Log("Verification is sucseed with status: " + status);
return true;
}
else
{
Debug.LogError("Verification is failed with status: " + status);
return false;
}
}
catch(Exception e)
{
Debug.Log(e.Message);
}
}
And i get in Unity console this message "Verification is failed with status: NoApiDylib" what should i include in my project to fix it?
Upvotes: 0
Views: 117
Reputation: 31
So, the error NoApiDylib means that dlls and vendor code is not suit each other or dlls is in wrong place. Dll libhasp_linux_x86_64_xxxxx.so need to be in the same folder in which *.x86_64 file to work properly and a vendor code and feature id must fit the lib, hope it will help someone)
Upvotes: 0